Skip to content

ext: add celery signals ep #91

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

Merged
merged 2 commits into from
Apr 28, 2025

Conversation

jrcastro2
Copy link
Contributor

@jrcastro2 jrcastro2 force-pushed the add-celery-signales-ep branch from 623c886 to 0d43f63 Compare March 26, 2025 19:10
@jrcastro2 jrcastro2 requested a review from Copilot March 27, 2025 08:32
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds support for registering Celery signals via entry points, addressing the referenced issue.

  • Introduces a new method load_celery_signals, which imports modules for signal registration
  • Modifies init_app to set the logger level to DEBUG and load the signals

def load_celery_signals(self):
"""Load Celery signals."""
# Import Celery signals via entry points
for ep in pkg_resources.iter_entry_points("invenio_celery.signals"):
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I addded this to have a common place where the signals are registered, it could also be done in each repo if we prefer - instead of using an entry point

@jrcastro2 jrcastro2 force-pushed the add-celery-signales-ep branch 2 times, most recently from 24d9f7e to a89cbaf Compare April 28, 2025 13:16
@jrcastro2 jrcastro2 force-pushed the add-celery-signales-ep branch from a89cbaf to 84a445a Compare April 28, 2025 13:52
@jrcastro2 jrcastro2 merged commit e7ccd69 into inveniosoftware:master Apr 28, 2025
2 checks passed
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

Successfully merging this pull request may close these issues.

Job report
1 participant