Opened 5 years ago

Last modified 5 years ago

#62 new enhancement

Tasks scheduler using huey

Reported by: borja Owned by:
Priority: major Milestone: OpenWorkouts 0.3
Component: users Keywords:
Cc:

Description (last modified by borja)

Follow up of #29 (signup users).

We have the code that run a separate process in a task to handle emails queued in the mail queue.

That task code can be run from the command line, within the repo, like this:

  python ow/tasks/run.py development.ini send_emails

And that can be run periodically using a cron job, but that is not optimal for self-installations (like someone running openworkouts for personal purposes in a laptop - well, should someone in that setup needs email verification anyway??).

Using a tasks manager would be a good built-in solution with zero setup and huey (https://huey.readthedocs.io/en/latest/getting-started.html) sounds like a good choice (lightweight and easy to implement)

So, look into how to hook our tasks into it and run them through it.

Change History (1)

comment:1 Changed 5 years ago by borja

  • Description modified (diff)
Note: See TracTickets for help on using tickets.