Conversation
as stated in https://docs.celeryq.dev/en/v5.6.1/userguide/workers.html#remote-control: 'The solo pool supports remote control commands, but any task executing will block any waiting control command, so it is of limited use if the worker is very busy.' This prevents inspecting a worker when it is running a task, so better switch to another pool type.
/tasks/inspect.json dumps worker active queues as json
will inspect the worker queues for a running task with the same name and args, and return its task id directly instead of queuing a new identical task. this way if the user reloads a page triggering a task (such as /csw/srv or /admin/geoserver/datadir) we wont queue another task, and just wait for the completion of the already running task.
landryb
added a commit
that referenced
this pull request
Mar 19, 2026
this can happen if no celery worker is running, and in this case active_tasks.items() blows.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When a user goes to a page that triggers a task (such as
/csw/srvwhen the geonetwork contents werent found in the cache, or/admin/geoserver/datadirwhen the datadir view wasnt found in memory), avoid queuing another task if there's already one running with the same name and args.