debian-forge-composer/cmd/osbuild-worker
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
..
jobimpl-depsolve.go worker: extend the depsolve job to use DepsolvePackageSets() 2022-04-28 14:42:49 +02:00
jobimpl-koji-finalize.go Move OSBuildMetadataToRPMs and PackageMetadataToSignature to osbuild2 2022-02-18 09:26:35 +01:00
jobimpl-koji-init.go Relax TCP timeouts for koji connections 2022-02-10 14:58:10 +01:00
jobimpl-osbuild-koji.go worker/clienterrors: add empty manifest error 2022-04-06 10:57:37 +02:00
jobimpl-osbuild.go Stop setting the StreamOptimized option in Weldr and Cloud APIs 2022-05-04 16:22:29 +02:00
main.go worker: protect the instance from upgrading 2022-05-10 11:45:29 +02:00
osbuild.go worker: don't marshal manifest in byte[] from 2022-02-01 20:28:40 +00:00