Allow configurable after_script timeouts
Status update (2023-03-13)
- This feature is now a candidate for 16.2 at the earliest as we still need to refine the implementation proposal.
- Ahead of that, we will work on adding an error message if the
after_scripttimeout is exceeded.
Allow configurable after_script timeouts so that post script cleanup can be done here even when it takes longer than 5 minutes.
This can be nice for semantically breaking up when things happen but also if you want something to always run even if the script failed but it takes more than 5 minutes.
I'm currently just moving it into a script action because I don't really need it to fire on failure (waiting for an ECS deployment to finish draining previous tasks).
The after_script timeout is currently hardcoded to 5 minutes. It would be nice to make this optionally configurable just like the main script actions are.
In the original issue raised about adding after_script it was noted that this was planned to be some arbitrary timeout with a later configuration option
Links to related issues and merge requests / references
Please paste a link of the related issues or/and merge requests