Flamenco/internal/manager/api_impl
Sybren A. Stüvel ee31316d9d Manager: more gracefully log context cancellation errors in database layer
The context passed to the database layer will auto-close when the HTTP
client disconnects. This will cancel any running query, which is the
expected behaviour. Now this no longer results in an error being logged
in the database layer. Instead, a message is logged at debug level.

The API layer is also adjusted to silence logging of `context.Canceled`
for certain operations, most notably getting all jobs and getting all
tasks of a job. These calls occur when the webapp reconnects after a
restart of the Manager. That may trigger a refresh of the page, which
immediately aborts any pending API calls. This is normal and should not
cause errors to be logged.
2024-05-28 17:27:27 +02:00
..
dummy Change Go package name from git.blender.org to projects.blender.org 2023-08-01 12:42:31 +02:00
mocks Manager: Convert FetchTask to sqlc 2024-05-28 14:46:42 +02:00
api_impl.go Manager: implement API operation to get the farm status 2024-02-29 20:42:28 +01:00
background.go Manager: run some operations in a background context 2022-07-18 16:26:06 +02:00
interfaces.go Manager: Convert FetchTask to sqlc 2024-05-28 14:46:42 +02:00
jobs_query_test.go Manager tests: replace assert.NoError() with require.NoError() 2024-03-16 11:09:18 +01:00
jobs_query.go Manager: more gracefully log context cancellation errors in database layer 2024-05-28 17:27:27 +02:00
jobs_test.go Manager: Convert FetchTask to sqlc 2024-05-28 14:46:42 +02:00
jobs.go Manager: Convert FetchTask to sqlc 2024-05-28 14:46:42 +02:00
meta_test.go Manager tests: replace assert.NoError() with require.NoError() 2024-03-16 11:09:18 +01:00
meta.go Manager: implement API operation to get the farm status 2024-02-29 20:42:28 +01:00
openapi_auth_test.go OAPI: rename pkg/api/flamenco-manager.yaml to flamenco-openapi.yaml 2022-05-19 15:22:37 +02:00
openapi_auth.go OAPI: rename pkg/api/flamenco-manager.yaml to flamenco-openapi.yaml 2022-05-19 15:22:37 +02:00
shaman.go Change Go package name from git.blender.org to projects.blender.org 2023-08-01 12:42:31 +02:00
support_test.go Manager tests: replace assert.NoError() with require.NoError() 2024-03-16 11:09:18 +01:00
test-flamenco-manager.yaml Manager: re-queue previously failed tasks of worker when blocklisting 2022-06-17 15:49:16 +02:00
timeouts.go Manager: add timeout when fetching job 2022-12-14 13:02:59 +01:00
varrepl_test.go Change Go package name from git.blender.org to projects.blender.org 2023-08-01 12:42:31 +02:00
varrepl.go Change Go package name from git.blender.org to projects.blender.org 2023-08-01 12:42:31 +02:00
worker_auth.go Manager & website: provide more helpful info when Worker auth fails 2024-01-25 14:19:24 +01:00
worker_mgt_test.go Manager tests: replace assert.NoError() with require.NoError() 2024-03-16 11:09:18 +01:00
worker_mgt.go Manager: Introduce event bus system 2024-02-03 22:55:23 +01:00
worker_sleep_schedule.go Change Go package name from git.blender.org to projects.blender.org 2023-08-01 12:42:31 +02:00
worker_task_updates_test.go Manager tests: replace assert.NoError() with require.NoError() 2024-03-16 11:09:18 +01:00
worker_task_updates.go Change Go package name from git.blender.org to projects.blender.org 2023-08-01 12:42:31 +02:00
workers_test.go Manager tests: replace assert.NoError() with require.NoError() 2024-03-16 11:09:18 +01:00
workers.go Manager: Introduce event bus system 2024-02-03 22:55:23 +01:00
zerolog.go Manager: fix race condition in logging of worker name/UUID 2022-06-17 17:13:32 +02:00