composer: Disable artifacts for the service

When backed by a DB, composer has no need of a queue directory.

This also addresses "Error moving artifacts for job" logging noise.

Signed-off-by: sanne <sanne.raymaekers@gmail.com>
This commit is contained in:
sanne 2021-12-03 18:26:40 +01:00 committed by Tom Gundersen
parent 487e2d0669
commit 60d4f5a751
5 changed files with 16 additions and 8 deletions

View file

@ -39,6 +39,7 @@ type WorkerAPIConfig struct {
CA string `toml:"ca"`
RequestJobTimeout string `toml:"request_job_timeout"`
BasePath string `toml:"base_path"`
EnableArtifacts bool `toml:"enable_artifacts"`
PGHost string `toml:"pg_host" env:"PGHOST"`
PGPort string `toml:"pg_port" env:"PGPORT"`
PGDatabase string `toml:"pg_database" env:"PGDATABASE"`
@ -92,6 +93,7 @@ func GetDefaultConfig() *ComposerConfigFile {
Worker: WorkerAPIConfig{
RequestJobTimeout: "0",
BasePath: "/api/worker/v1",
EnableArtifacts: true,
EnableTLS: true,
EnableMTLS: true,
EnableJWT: false,