Configure the execution behavior for a task or runbook.
Execute rules allow you to configure the behavior of task or runbook execution. By default, tasks and runbooks do not require requests and allow self-approvals. You can turn on these options in the Advanced section of the task or runbook editor:
Requiring requests will disable schedules. Any existing schedules will be paused on the next attempted execution.
Task execute rules
For tasks, you can also configure a timeout and label constraints. If you're self-hosting the agent, adding label constraints restricts task to run only on agents with those labels.
Session and task behavior
If a task is run in a session, then it also considers the request on the session (if it exists) when determining if the execute rules have been satisfied. In other words, if a session contains a task that requires requests, and that session was requested, this satisfies the request requirement for the task, and the task is executed as normal. Similarly, if the task disallows self-approvals and the session request was not self-approved, the task is executed automatically.
However, if the request on the session does not satisfy the task's execute rules, or the session was executed directly, then a request for that task will be automatically opened instead.