Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Job does not run when scheduled #6

Open
maxslabyak opened this issue Jul 1, 2016 · 3 comments
Open

Job does not run when scheduled #6

maxslabyak opened this issue Jul 1, 2016 · 3 comments

Comments

@maxslabyak
Copy link

If I schedule a publish at a specific time, I see it taking sometimes anywhere from 10-30 mins to actually run.

@RosenPetrov
Copy link
Contributor

Hello Max,
The current version uses the Sitecore scheduling implementation. Sitecore.Tasks.DatabaseAgent runs every 10 minutes (without any relation to a particular time). Depending on the value in the Last Run field, the agent decides whether or not to execute the Scheduled Publish Task. This means that you should expect a time margin between the exact scheduled time and the execution. The ASP.NET architecture makes it unrealistic to expect to invoke a process at a very specific time. We could consider adding support for the Windows Task Scheduler, which would get around these limitations, in the next version. We are also open for any suggestions for improvements in this direction.
Thanks for your feedback. It's appreciated.

@maxslabyak
Copy link
Author

"Depending on the value in the Last Run field, the agent decides whether or not to execute the Scheduled Publish Task. "
What would be the case(s) where it would decide not to execute?

On Tue, Jul 5, 2016 at 4:30 AM -0400, "Rosen Petrov" [email protected] wrote:

Hello Max,

The current version uses the Sitecore scheduling implementation. Sitecore.Tasks.DatabaseAgent runs every 10 minutes (without any relation to a particular time). Depending on the value in the Last Run field, the agent decides whether or not to execute the Scheduled Publish Task. This means that you should expect a time margin between the exact scheduled time and the execution. The ASP.NET architecture makes it unrealistic to expect to invoke a process at a very specific time. We could consider adding support for the Windows Task Scheduler, which would get around these limitations, in the next version. We are also open for any suggestions for improvements in this direction.

Thanks for your feedback. It's appreciated.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

@spareva
Copy link
Contributor

spareva commented Jul 5, 2016

Hi Max,
It would not execute if it is not time for it to do so yet, i.e. the amount of minutes described in the web.config has not passed yet. In a default scenario of a 10-minute check in the web.config the maximum logical delay possible would be 19 minutes 59 seconds. Any builds, config changes or other actions that would cause a Sitecore/IIS restart could cause a further delay.

Thanks,
Svetlana

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants