Hello all i am newbie to celery and python. i am creating a simple task using rabbitmq-server. But i have no idea how to achieve periodic task using celery beat in python. I search but every where i get periodic task with django.
i use this code as tasks.py: from celery import Celery from time import strftime
app = Celery('tasks',broker='pyamqp://guest@localhost//')
@app.task
def show_time():
return strftime('%Y-%m-%d %H:%M:%S')
run_task.py:
from tasks import show_time
show_time.delay()
Thanks for you time.
finally after some more concise search i have found solution
and run command : celery -A task_planner worker -l info -B