debian-forge-composer/vendor
Thomas Lavocat ab7fe6558a worker: protect the instance from upgrading
Before the instance was vulnerable to an OTA update while processing a
request. Because there is no way of retriggering a job in Composer, it
is better to avoid this situation.
The way we are doing it is by setting the `protected` flag onto the
instance when a job is being processed. This way the AWS scheduler
does hopefully not shutdown the machine at the wrong time.

Main caveats of this solution:
* Starvation: If a worker keeps accepting new jobs, then it might not be
  updated.
* Inconsistency: There exist a window between the job acceptation and the
  protection where the worker can be shutdown without having the time to
  protect itself.
2022-05-10 11:45:29 +02:00
..
cloud.google.com/go build(deps): bump cloud.google.com/go/compute from 1.6.0 to 1.6.1 2022-05-04 13:05:10 +02:00
github.com worker: protect the instance from upgrading 2022-05-10 11:45:29 +02:00
go.opencensus.io build(deps): bump google.golang.org/api from 0.36.0 to 0.56.0 2021-09-05 11:17:29 +02:00
golang.org/x build(deps): bump google.golang.org/api from 0.74.0 to 0.75.0 2022-04-25 15:05:03 +02:00
google.golang.org build(deps): bump cloud.google.com/go/compute from 1.6.0 to 1.6.1 2022-05-04 13:05:10 +02:00
gopkg.in build(deps): bump gopkg.in/ini.v1 from 1.63.0 to 1.66.4 2022-04-08 09:44:52 +02:00
modules.txt worker: protect the instance from upgrading 2022-05-10 11:45:29 +02:00