How can this error be bypassed and how can tasks be taken over in bulk?
Release : 12.x, 21.x, 24.4.2 and below (manual work)
24.4.3 and higher (REST API)
Component : AUTOMATION ENGINE
This behavior is by design.
The user who starts a task is deemed the owner of that execution; that user needs to be active and have the right permissions to ensure the executions are not interrupted.
Especially if the user is owning the execution of the Job schedule – which there by triggers all the defined executions within that object on a fixed turnaround time.
In a case where the user is leaving the organization and must be deleted or have their permissions revoked, all the tasks which are owned by the user must be "taken over" – This can be done in two different ways:
Manually take over tasks owned by the user (all releases including those that are prior to release 24.4.3) from the Process Monitoring perspective
Note: This option is not available either in client 0 or for tasks of type JOBD (remote jobs).
Take over tasks using the REST API (Available in release 24.4.3 and higher)
The REST endpoint, /{client_id}/executions/{run_id}/{action}, can be used in 24.4.3 or higher. An example curl command would be:
curl --request POST --url https://automic-rest-api-dns-name.example.com:8443/ae/api/v1/100/executions/[runid]/take_over -u 'username/department:pass'