Celery: Is it necessary?

Aperta
#480 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Refactoring
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
django, python, rabbitmq
Ambito
backend, devops

Direzione di ricerca

Start by locating the create_reports_monthly task, its tests, and the worker and beat entries in Procfile and app.json. Read how monthly reports are created and how the existing tests exercise that task, then check the project’s Django management command patterns. Done means the task and tests are refactored, Celery and RabbitMQ dependencies are removed, and a Dokku cron job runs the command at 01:00 UTC on the first of each month.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

enhancement medium priority

The current project defines a celerey worker and a beat process in the Procfile and the app.json just to run the motnhly report creation
task.

I realized that this is overkill.

  • Remove celery and rabbmitmq dependencies
  • Refactor the create_reports_monthly to become a django management command
  • Refactor it's tests
  • Use a dokku cron job to run the management command on every first of the month at 1 o'clock UTC
Lingua principale
Python
Stelle
0
Fork
4
Merge medio
2g 16h
PR unite (30g)
5

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Nessun modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di ClockGU/clock-backend

Tutte le issue di ClockGU/clock-backend

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.