django - How to implement job scheduling in python? -



django - How to implement job scheduling in python? -

i implementing task scheduling scheme in django. user select task e.g. send email , set specific time , date task execution.

i found celery can set task

@task def email(address): // send email logic

but how can trigger @ specific time? periodictasks in celery 1 have specify execution time , frequency upfront. how can add together execution date , time on fly?

is method in celery e.g. add.schedule(date="some_data") or other ways can solve utilize case.

periodic tasks 1 feature of celery. there hell lot of other features supports.

you can utilize celery case. can define simple celery task something. later when user submits/clicks particular task, write simple code connect task. task executed celery.

checkout first steps django. also, celery advanced async task delegation , processing system.

redis queue much simpler async task processor , lightweight. if have simple tasks do, can utilize this

python django celery djcelery

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -