django-celery-beat icon indicating copy to clipboard operation
django-celery-beat copied to clipboard

`PeriodicTask.expire_seconds` not work.

Open 954-Ivory opened this issue 2 years ago • 6 comments

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.

954-Ivory avatar Oct 13 '22 17:10 954-Ivory

ok

auvipy avatar Oct 13 '22 17:10 auvipy

hey did you worked on this?

auvipy avatar Mar 13 '23 09:03 auvipy

@auvipy can you assign this to me, I can work on this

cs-satish-mishra avatar Apr 08 '23 09:04 cs-satish-mishra

you can come with a draft PR

auvipy avatar Apr 08 '23 09:04 auvipy

Sure

cs-satish-mishra avatar Apr 08 '23 09:04 cs-satish-mishra

Hi. Is there updates on this issue?

bbkgh avatar Dec 10 '23 09:12 bbkgh