django-celery-beat
django-celery-beat copied to clipboard
`PeriodicTask.expire_seconds` not work.
Summary:
This issue proposed from: https://github.com/celery/django-celery-beat/pull/564
This PR seems want to fixes the PeriodicTask.expire_seconds
.
So I check this feature, PeriodicTask.expire_seconds
seems realy not work.
- Celery Version: 5.2.7
- Celery-Beat Version: 2.3.0
Exact steps to reproduce the issue:
interval_schedule = IntervalSchedule.objects.create(
every=1,
period=IntervalSchedule.SECONDS,
)
periodic_task = PeriodicTask(
pk=10,
name='test',
task='test', # Tips: use real task to try that.
enabled=True,
expire_seconds=20,
interval=interval_schedule
)
periodic_task.save()
Wait for 20 seconds, the task will not be expired.
Detailed information
I will try to fixed it later.
ok
hey did you worked on this?
@auvipy can you assign this to me, I can work on this
you can come with a draft PR
Sure
Hi. Is there updates on this issue?