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

Update local celery script #2035

Merged
merged 10 commits into from
Dec 11, 2023
Merged

Update local celery script #2035

merged 10 commits into from
Dec 11, 2023

Conversation

sastels
Copy link
Collaborator

@sastels sastels commented Nov 22, 2023

Summary | Résumé

Update README with local celery info
Locally, have the celery worker also run beat. Update the documentation accordingly.

Test instructions | Instructions pour tester la modification

  • run the api
  • run all celery withmake run-celery-local
  • see the beat logs coming through
  • verify that sending still works

@sastels sastels marked this pull request as ready for review November 22, 2023 20:06
andrewleith
andrewleith previously approved these changes Nov 22, 2023
Copy link
Member

@andrewleith andrewleith left a comment

Choose a reason for hiding this comment

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

LGTM 🎉

README.md Outdated
```
scripts/run_celery_beat.sh
```
`make run-celery-beat-local`
Copy link
Member

Choose a reason for hiding this comment

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

It's great to mention the make target instead. As these are one more level of abstraction, we could even just have a one target named make run-celeries-local, as it doesn't have to be a one to one mapping with the actual scripts but rather intended usage (run celery setup locally).

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

hrm, running both the beat and celery workers with one make command? I didn't think that would work, but admittedly didn't try! I shall see!

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

oh wow, we can just add "--beat" to the worker script. That was easy.

jimleroyer
jimleroyer previously approved these changes Nov 22, 2023
Copy link
Member

@jimleroyer jimleroyer left a comment

Choose a reason for hiding this comment

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

LGTM, merci!

I left a comment on potential improvement (on top of the improvement in this PR) but it's outside the scope of this change.

@jzbahrai jzbahrai enabled auto-merge (squash) November 23, 2023 18:54
@sastels sastels disabled auto-merge November 23, 2023 18:57
@sastels sastels changed the title Update README with local celery info Update local celery script Nov 24, 2023
@sastels
Copy link
Collaborator Author

sastels commented Nov 24, 2023

Clearing approvals since I changed the scripts.

@sastels sastels dismissed stale reviews from andrewleith and jimleroyer November 24, 2023 16:26

code changed

@sastels sastels merged commit c8f8d5c into main Dec 11, 2023
4 checks passed
@sastels sastels deleted the local-celery-info-in-readme branch December 11, 2023 17:32
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.

4 participants