django-q icon indicating copy to clipboard operation
django-q copied to clipboard

null value in column "attempt_count" violates not-null constraint

Open ropraet opened this issue 4 years ago • 2 comments

Hi,

I'm using Django Q (latest version) the following way (Django 3.0.2, Python 3.7.5):

Schedule.objects.create(func='......', args=1, repeats = -1, schedule_type=Schedule.WEEKLY, next_run=start_activate)

In Sentry, I am receiving a lot of the following errors: null value in column "attempt_count" violates not-null constraint. Why is this? How can I avoid this?

Thanks a lot!

ropraet avatar Apr 27 '21 10:04 ropraet

Same error here, seems happening only on scheduled task.

Thank you for you help!

stackbomb avatar May 01 '21 17:05 stackbomb

any update on this?

ShoaibAkhtar026 avatar Nov 10 '21 13:11 ShoaibAkhtar026