You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
save_limit
Limits the amount of successful tasks saved to Django.
- Set to 0 for unlimited.
- Set to -1 for no success storage at all.
- Defaults to 250
- Failures are always saved.
I have save_limit set to 0 in my config:
Q_CLUSTER = {
...
'save_limit': 0,
....
}
but none of the successful tasks are being saved to the db.
Setting save_limit to a positive value works, though.
I'm thinking line 402 from the save_task function in cluster.py may be the culprit:
# SAVE LIMIT < 0 : Don't save success
if not task.get('save', Conf.SAVE_LIMIT > 0) and task['success']:
return
and Conf.SAVE_LIMIT > 0 should be Conf.SAVE_LIMIT >= 0:
# SAVE LIMIT < 0 : Don't save success
if not task.get('save', Conf.SAVE_LIMIT >= 0) and task['success']:
return
Or am I overlooking something in my config?
The text was updated successfully, but these errors were encountered:
The
django-q
docs says:I have
save_limit
set to0
in my config:but none of the successful tasks are being saved to the db.
Setting
save_limit
to a positive value works, though.I'm thinking line 402 from the
save_task
function incluster.py
may be the culprit:and
Conf.SAVE_LIMIT > 0
should beConf.SAVE_LIMIT >= 0
:Or am I overlooking something in my config?
The text was updated successfully, but these errors were encountered: