Pass task configuration to the decorator, not to the task itself
This commit is contained in:
@@ -5,8 +5,8 @@ from mayan.celery import app
|
||||
from .models import Installation
|
||||
|
||||
|
||||
@app.task
|
||||
def task_details_submit(max_retries=None, rate_limit='1/m', ignore_result=True):
|
||||
@app.task(ignore_result=True, max_retries=None, rate_limit='1/m')
|
||||
def task_details_submit():
|
||||
try:
|
||||
details = Installation.objects.get()
|
||||
details.submit()
|
||||
|
||||
Reference in New Issue
Block a user