Celery: Is it necessary?

Ouverte
#480 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Personne n'a encore pris cette issue.

Évaluation

Difficulté
4/5
Temps estimé
3-5 jours
Accessibilité débutants
48/100
Type d'issue
Refactorisation
Clarté
Plutôt claire
Activité
Active
Stack technique
django, python, rabbitmq
Domaine
backend, devops

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

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
Langage dominant
Python
Étoiles
0
Forks
4
Merge moyen
2 j 16 h
PR mergées (30 j)
5

Préparer son environnement

  • Fournit un Dockerfile ou un fichier Docker Compose
  • Aucun modèle de pull request
  • Aucun guide de contribution

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de ClockGU/clock-backend

Toutes les issues de ClockGU/clock-backend

Issues similaires

Plus d'issues Python

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.