hodooor / Hodoor

Server side for Hodoor - Casual attendance system
GNU General Public License v3.0
8 stars 6 forks source link

End of month notification #131

Open OndrejVicar opened 6 years ago

OndrejVicar commented 6 years ago

At the end of a month, hodoor should notify it's users about a need to assign not-assigned hours to projects via email.

DavidKozina commented 6 years ago

Hodoor runs on Linux or Windows? Can we use Cron? Time scheduled tasks are main problem of this...

DavidKozina commented 6 years ago

Also for disabling notification I need Profile model from pull request #96

OndrejVicar commented 6 years ago

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/

DavidKozina commented 6 years ago

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.

DavidKozina commented 6 years ago

Some complications:

DavidKozina commented 6 years ago

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.

OndrejVicar commented 6 years ago

Ok django-crontab looks fine.