Skip to content

PeriodicTask.expire_seconds not work. #592

Open
@954-Ivory

Description

@954-Ivory

Summary:

This issue proposed from: #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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions