Celery: Is it necessary?

Offen
#480 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
48/100
Issue-Typ
Refactoring
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
django, python, rabbitmq
Bereich
backend, devops

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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
Vorherrschende Sprache
Python
Sterne
0
Forks
4
Ø Merge
2 T. 16 Std.
Gemergte PRs (30 T.)
5

Entwicklungsumgebung

  • Enthält ein Dockerfile oder eine Docker-Compose-Datei
  • Keine Pull-Request-Vorlage
  • Kein Beitragsleitfaden

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus ClockGU/clock-backend

Alle Issues in ClockGU/clock-backend

Ähnliche Issues

Weitere Issues zu Python

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.