You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the builder receives a SIGTERM while there is a running workflow, it first has to wait until all stages of the workflow are finished and only after that it can terminate. This graceful shutdown can be performed faster.
Description
In the new approach, the builder will wait until the current ongoing stage of the workflow finishes. After that, it terminates. In case that wasn't the last stage of the workflow, the builder re-runs the whole workflow.
An example:
builder starts a workflow
terraformer starts to provision the desired infrastructure
builder receives SIGTERM
terraformer hasn't finished the provisioning yet
builder waits until terraformer finishes the provisioning
terraformer finished provisioning
builder terminates
builder re-runs the whole workflow (including the terraformer part)
The re-run will move quickly through the terraformer stage because the infrastructure is already provisioned.
Exit criteria
builder works with a new approach to SIGTERM handling.
Motivation
If the
builder
receives a SIGTERM while there is a running workflow, it first has to wait until all stages of the workflow are finished and only after that it can terminate. This graceful shutdown can be performed faster.Description
In the new approach, the
builder
will wait until the current ongoing stage of the workflow finishes. After that, it terminates. In case that wasn't the last stage of the workflow, thebuilder
re-runs the whole workflow.An example:
builder
starts a workflowterraformer
starts to provision the desired infrastructurebuilder
receives SIGTERMterraformer
hasn't finished the provisioning yetbuilder
waits untilterraformer
finishes the provisioningterraformer
finished provisioningbuilder
terminatesbuilder
re-runs the whole workflow (including theterraformer
part)The re-run will move quickly through the
terraformer
stage because the infrastructure is already provisioned.Exit criteria
builder
works with a new approach to SIGTERM handling.Anything else to add
@bernardhalas as agreed, please complement me.
The text was updated successfully, but these errors were encountered: