Skip to content

threaded tasks in job manager: support auto-refresh of auth token #817

@VictorVerhaert

Description

@VictorVerhaert

During a large scale production we end up with blocks where jobs don't get started due to Failed to start job 'j-2510101449364f5e9a844d1bc59e2653': OpenEoApiError('[401] TokenInvalid: Authorization token has expired or is invalid. Please authenticate again.')

Image The blocks are rather short making me think it only impacts all the threads that have already been created.

I think it might have something to do with the auth bearer not being thread safe when refreshing.
Adding a token getting in the thread with a locked getter (thread safe) could solve this, but it is certainly not the only solution here

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions