using quartz.net on windows azure
Asked Answered
H

2

6

I am using quartz.net in my asp.net app and the quartz scheduler works when I am running on my localhost but when I publish the site to windows azure it no longer works. Any help would be much appreciated.

Huguenot answered 5/8, 2013 at 12:16 Comment(7)
Can you describe your problem in more details? How are you using Quartz in your web role? What do you mean when you say when I publish the site to windows azure it no longer works.Attachment
Quartz is in the web role and is being started in the Global.asax. When I am running the site on my localhost the scheduler works just fine, however; when I publish my site on windows azure the scheduler does't work. The rest of the site works fine but the scheduler does run the assigned task. Thanks for your help.Huguenot
Sorry for getting back and forth on this but can you share some code? Also, kind of off topic but have you considered hosting your scheduler in a worker role instead of a web role? IMHO, worker role is more suitable for running scheduled tasks.Attachment
I'm new to azure. I am looking into using a worker role right now. The more I look into it, I don't think I am currently using a web role. I am running it out of an ASP.net MVC4 web app. I am not sure that code will help because I think my project setup is all wrong for using a scheduler on azure.Huguenot
I see. If you're interested in learning more about using Quartz in a Worker Role, I wrote a blog post sometime back which you may find useful: gauravmantri.com/2013/01/23/….Attachment
The problem wasn't that it wasn't running on the azure site. The problem was that azure was using UTC and my localhost was using local time. Since I was using a cron schedule and local time I wasn't seeing the scheduler fire. It is possible to run a quartz.net scheduler on azure without using web role/worker roles. This can all be done within the hosting website.Huguenot
I am having the same problem, quartz.net is working on localhost but only works with RAM storage on azure. How did you solve it? I'm not sure it's UTC related but still. Thanks! @HuguenotSchweiz
H
6

The problem wasn't that it wasn't running on the azure site. The problem was that azure was using UTC and my localhost was using local time. Since I was using a cron schedule and local time I wasn't seeing the scheduler fire. It is possible to run a quartz.net scheduler on azure without using web role/worker roles. This can all be done within the hosting website.

Huguenot answered 6/8, 2013 at 14:1 Comment(0)
S
-1

The quartz.net is running in a shared application pool and in azure you dont have enough permission to do that, if you dont buy a Windows Server on Azure and use that server as your webserver.

Strait answered 5/8, 2013 at 14:21 Comment(1)
The problem wasn't that it wasn't running on the azure site. The problem was that azure was using UTC and my localhost was using local time. Since I was using a cron schedule and local time I wasn't seeing the scheduler fire. It is possible to run a quartz.net scheduler on azure without using web role/worker roles. This can all be done within the hosting website.Huguenot

© 2022 - 2024 — McMap. All rights reserved.