Is there an Automation time out?

Hi All,

I am looking to understand if Automations ever time out.  Are there concrete limits on this?

In my testing I created a scheduled Automation, and it ran forever.  It wasn't doing real work, just printing log messages forever, and I had to restart the server to get it to stop.

But then I wrote an Automation that triggered on a Like event, and it seems to have timed out after 2 minutes.

I'm guessing that maybe the automation has a different timeout based on the type, but I want to confirm that theory and know if the other trigger types also have different time outs.

Thanks.



grammar fix
[edited by: robert.hanson at 2:47 PM (GMT 0) on Wed, Mar 9 2022]
Parents
  • Automations (and scripts in general) are not limited by a hard-set time, however, there are multiple protections against run-away scripts:

    Automations (and scripts in general) processing due to HTTP requests or as event handlers on web requests are subject to HTTP timeouts. Automations processing as background jobs are subject to cancellation tokens related to job processing (if a job is stopped or the job server is shutdown, the automation will stop processing).

    ** Note that server-side Javascript has a 100-level recursion/stack limit, but not a statement limit.

Reply
  • Automations (and scripts in general) are not limited by a hard-set time, however, there are multiple protections against run-away scripts:

    Automations (and scripts in general) processing due to HTTP requests or as event handlers on web requests are subject to HTTP timeouts. Automations processing as background jobs are subject to cancellation tokens related to job processing (if a job is stopped or the job server is shutdown, the automation will stop processing).

    ** Note that server-side Javascript has a 100-level recursion/stack limit, but not a statement limit.

Children