yanis
yanis

Reputation: 333

Concourse prevent background processes from being stopped if job is canceled

I have a Concourse job which internally runs shell scripts for every task.yml of the pipeline. One of these scripts I would like to continue executing even if the job was manually aborted.

Is there a way to accomplish this in Concourse? Either controlling the way of process killing on Concourse level or running shell scripts in background without Concourse being able to terminate them. Or separating this process to be executed by a different, independent node.

Upvotes: 0

Views: 276

Answers (1)

Steele Clifton-Berry
Steele Clifton-Berry

Reputation: 11

What do you think of the ensure step hook? If the parent step succeeds, fails, errors, or is aborted, the contents within the ensure step hook will still run. The parent step could be an empty or informational task.

Upvotes: 1

Related Questions