Skip to content

Celery Beat: get trigger time for the task #6974

@daadu

Description

@daadu

Checklist

  • I have checked the issues list
    for similar or identical enhancement to an existing feature.
  • I have checked the pull requests list
    for existing proposed enhancements.
  • I have checked the commit log
    to find out if the if the same enhancement was already implemented in the
    master branch.
  • I have included all related issues and possible duplicate issues in this issue
    (If there are none, check this box anyway).

Related Issues and Possible Duplicates

Related Issues

  • None

Possible Duplicates

  • None

Brief Summary

Period task is a great addition to Celery. In some use cases you need to know when it was triggered (execution time can not be used to infer it, because of delay,etc).

A workaround I saw was using expires to calculate it, but would be great if supported natively.

Design

Architectural Considerations

None

Proposed Behavior

Setting eta as the trigger time in task could do the job. This needs to be done by beat scheduler, while dispatching the task.

I am not well versed with Celery internals, this could break certain things.

Proposed UI/UX

Diagrams

N/A

Alternatives

None

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions