debian-forge-composer/cmd
Lars Karlitski 26b36ba704 worker/api: introduce job tokens
Don't give out job ids to workers, but `tokens`, which serve as an
indirection. This way, restarting composer won't confuse it when a stray
worker returns a result for a job that was still running. Also,
artifacts are only moved to the final location once a job finishes.

This change breaks backwards compatibility, but we're not yet promising
a stable worker API to anyone.

This drops the transition tests in server_test.go. These don't make much
sense anymore, because there's only one allowed transition, from running
to finished. They heavily relied on job slot ids, which are not easily
accessible with the `TestRoute` API. Overall, adjusting this seemed like
too much work for their benefit.
2020-09-11 14:23:24 +01:00
..
osbuild-composer repositories: distinguish between RHEL8 beta and GA 2020-08-19 15:06:21 +02:00
osbuild-dnf-json-tests distro: replace BasePackages() with Packages() 2020-06-29 16:04:38 +02:00
osbuild-image-tests internal/boot: Make some function public 2020-09-03 15:12:59 +01:00
osbuild-koji upload/koji: add support for GSSAPI/Kerberos auth 2020-08-27 17:29:57 +01:00
osbuild-pipeline distro: replace BasePackages() with Packages() 2020-06-29 16:04:38 +02:00
osbuild-store-dump distro: replace BasePackages() with Packages() 2020-06-29 16:04:38 +02:00
osbuild-tests tests: Add reproducer for #524 2020-06-26 22:02:46 +02:00
osbuild-upload-aws Refactor Azure upload code to a separate package 2019-11-27 12:14:07 +01:00
osbuild-upload-azure cmd/osbuild-upload-azure: improve error message on wrong arguments 2020-04-27 20:34:20 +02:00
osbuild-worker worker/api: introduce job tokens 2020-09-11 14:23:24 +01:00