Use delayed jobs to automatically stop review apps
The problem
Automatically teardown review apps after some time.
The solution
It seems that we could use delayed jobs
to automatically schedule stopping of review apps once they are deployed.
Problems
- While job is scheduled the pipeline gonna be marked as scheduled, thus not finished,
- The scheduled job should check if it can be run, as a newer review app could be installed,
- The scheduled job can be canceled and run manually, but will they be executed automatically when branch is removed or merged?
- ...?