Possible reasons for a failed schedule

Could you please advise me on the following?

  1. Let’s say I have a schedule that triggers every 5 minutes and runs a service. If the service execution takes more than 5 minutes, how will this affect the next scheduled execution? Will it be postponed, or could it fail in such a case?

  2. Could it be that the schedule fails, not because the service it triggers fails, but due to other reasons?
    We have cases where the schedule fails (somewhat randomly), and we can see it in the schedule logs, however there are no corresponding failed services in the services logs. So it looks like schedule fails itself, not the service it triggers. But again, it happens a bit randomly.

Thank you in advance!

Hi,

Do you have No Concurrency enabled on the endpoint that is being triggered by the scheduele?
Do you also have some form of Event Log to monitor errors that occur in your service?

This would be the first steps to debug your service :slightly_smiling_face:

// Erik

Hello Erik,

Thank you for your answer.

No Concurrency is not enabled.

We do have some Event logs for this service, but they don’t cover all the error-prone areas. Our logs don’t report any errors, but they may miss some.

Also, we have logs enabled for this service. But when schedule fails, there is no failed service listed in the Services Logs. So, there is a failed schedule, but not the service that was supposed to be triggered by this schedule.

You can see this in the screenshots from our Schedules Logs and Services Logs.


Does this mean that the service didn’t fire at all?

Hello!

If concurrency is allowed, the schedule will try to get a slot at the scheduled time. Typically, 2-3 services are allowed in parallel by default. If the same service is already running, it will try to run in parallel, which might not be the behaviour you want.

In this case, the schedule started at just after 14:40, and failed on a web request action node which timed out after 60 seconds (i.e. the web request made a call to external party, and received no answer after 60 seconds, and threw an exception). I’ll send you that error message on DM.

PS: In general, it is possible for a Schedule to report “Failed” and a Service to have no report of execution at all. That may occur if a Schedule tries to run a Service when there is no more capacity on the Services.