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

Celery event monitor for agent #118

Open
lukasjuhrich opened this issue Sep 19, 2022 · 1 comment
Open

Celery event monitor for agent #118

lukasjuhrich opened this issue Sep 19, 2022 · 1 comment
Milestone

Comments

@lukasjuhrich
Copy link
Collaborator

We should provide the celery event monitor for the agent to be able to quickly debug whether RPC messages get through properly.

The following is a snippet that should provide an adequate wrapper around celery.events.cursesmon.

from celery.events.cursesmon import evtop

from hades.config import load_config
from hades.agent import create_app


app = create_app(load_config())
app.control.broadcast("enable_events")
try:
    evtop(app)
finally:
    app.control.broadcast("disable_events")
@lukasjuhrich lukasjuhrich added this to the 0.6 milestone Sep 19, 2022
@lukasjuhrich
Copy link
Collaborator Author

(Snippet created to aid with #119)

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