Django Background-tasks interval

Viewed 1923

I am using background_task lib in django app I am trying to execute simple function every interval (5 min) How can I set the interval

Code in views.py

@background(schedule=60)
def hello(repeat=60*5):
    print("Hello")

and I run in powershell

python manage.py process_tasks

but it not execute every 5 min I think it execute every second how can I set it??

1 Answers
Related