Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fsapp: implement app.inspect based iter_active #16

Open
pmrowla opened this issue Mar 16, 2022 · 0 comments
Open

fsapp: implement app.inspect based iter_active #16

pmrowla opened this issue Mar 16, 2022 · 0 comments

Comments

@pmrowla
Copy link
Contributor

pmrowla commented Mar 16, 2022

Currently we implement iter_queued and iter_processed for manually accessing tasks as raw messages via the FS kombu broker. (This is needed for when there is no worker process running, since celery.control.inspect requires talking to a worker via broadcast messages)

def iter_processed(
self, queue: Optional[str] = None
) -> Generator[Message, None, None]:
"""Iterate over tasks which have been taken by a worker.
Arguments:
queue: Optional name of queue.
"""

Ideally we should also have an inspect-based wrapper which can return actual active tasks via celery.inspect for use when we have an active worker process

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant