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

feat: add rq worker #1011

Merged
merged 31 commits into from
Dec 9, 2022
Merged

feat: add rq worker #1011

merged 31 commits into from
Dec 9, 2022

Conversation

raphael0202
Copy link
Collaborator

@raphael0202 raphael0202 commented Dec 8, 2022

  • use rq and redis queues to send tasks from API to workers
  • use redis locks to avoid concurrent product insight updates or concurrent product_update tasks
  • simplify job workflows
  • save nutriscore and nutrition-table object detection model results in image_prediction table

@raphael0202 raphael0202 marked this pull request as ready for review December 8, 2022 10:30
@raphael0202 raphael0202 requested a review from a team as a code owner December 8, 2022 10:30
@raphael0202 raphael0202 temporarily deployed to robotoff-net December 9, 2022 09:11 — with GitHub Actions Inactive
@raphael0202 raphael0202 temporarily deployed to robotoff-net December 9, 2022 09:57 — with GitHub Actions Inactive
@raphael0202 raphael0202 merged commit c62f14c into master Dec 9, 2022
@raphael0202 raphael0202 deleted the add-rq-worker branch December 9, 2022 10:26
Copy link
Member

@alexgarel alexgarel left a comment

Choose a reason for hiding this comment

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

LGTM, here are my comments.

Only the change in deploy is potentially harmfull, we must discuss it or revert.

.deepsource.toml Show resolved Hide resolved
.github/workflows/container-deploy-ml.yml Show resolved Hide resolved
doc/how-to-guides/deployment/maintenance.md Show resolved Hide resolved
doc/introduction/architecture.md Show resolved Hide resolved
docker-compose.yml Show resolved Hide resolved
robotoff/workers/tasks/import_image.py Show resolved Hide resolved
robotoff/workers/tasks/import_image.py Show resolved Hide resolved
robotoff/workers/tasks/import_image.py Show resolved Hide resolved
robotoff/app/api.py Show resolved Hide resolved
robotoff/workers/tasks/product_updated.py Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment