Open OndrejVicar opened 6 years ago
Hodoor runs on Linux or Windows? Can we use Cron? Time scheduled tasks are main problem of this...
Also for disabling notification I need Profile model from pull request #96
There are plenty of options to do that.
https://stackoverflow.com/questions/573618/django-set-up-a-scheduled-job
Probably the most popular is celery but a lot of people have problem with it. I would also like to avoid to use cron task (atleast until we got full docker build).
Nice topic: https://stackoverflow.com/questions/46517613/python-task-queue-alternatives-and-frameworks
I think i like https://dramatiq.io/
I found lots of solutions too. The best what I found is https://github.com/kraiz/django-crontab...
But the dramatiq looks good so far. I chek it out. https://github.com/Bogdanp/django_dramatiq looks nice.
Some complications:
For me it seems to be more easy use cron and django_crontab than Dramatiq and RabbitMQ(or another message broker). One reason is than we cannot use django_dramatiq and communication between djangpo and dramatiq is complicated.
Django_crontab is quite simple and clear.
Ok django-crontab looks fine.
At the end of a month, hodoor should notify it's users about a need to assign not-assigned hours to projects via email.