debian-forge-composer/internal/cloudapi/v2
Ondřej Budai ba236180fc cloudapi: prevent dangling manifest goroutines
When composer exits, it doesn't wait for the manifest generation goroutines
to finish. This is generally a bad practice so let's introduce a bit of
syncing and a new Shutdown method to prevent this.

This also prevents the manifest generation goroutine from creating weird
states when interrupted on a random line of code.

Signed-off-by: Ondřej Budai <ondrej@budai.cz>
2022-04-06 08:51:01 +02:00
..
errors.go cloudapi: require gpgkey if check_gpg is set 2022-03-25 13:23:32 +01:00
errors_test.go cloudapi/v2: Listen on /api/image-builder-composer/v2 2021-10-11 09:52:21 +02:00
handler.go cloudapi: move enqueuing methods under server 2022-04-06 08:51:01 +02:00
openapi.v2.gen.go cloudapi: rename gpg_key field to gpgkey 2022-03-25 13:23:32 +01:00
openapi.v2.yml cloudapi: rename gpg_key field to gpgkey 2022-03-25 13:23:32 +01:00
server.go cloudapi: prevent dangling manifest goroutines 2022-04-06 08:51:01 +02:00
v2_internal_test.go cloudapi: require gpgkey if check_gpg is set 2022-03-25 13:23:32 +01:00
v2_koji_test.go test: use T.TempDir to create temporary test directory 2022-04-05 09:27:43 +02:00
v2_multi_tenancy_test.go test: use T.TempDir to create temporary test directory 2022-04-05 09:27:43 +02:00
v2_test.go cloudapi: prevent dangling manifest goroutines 2022-04-06 08:51:01 +02:00