Skip to content

[Scheduler] Possibility to add stamps to #[AsPeriodicTask] and #[AsCronTask] #60522

Open
@faizanakram99

Description

@faizanakram99

Description

AsPeriodicTask and AsCronTask is pretty handing in promoting any service or command to a periodic task, the only issue is that custom stamps cannot be added to the scheduled messages unlike defining jobs in a dedicated Schedule class where there is no such restriction.

Example

#[AsPeriodicTask(stamps: [SomeStamp::class, new AnotherStamp(..some static arguments..)])]
class FooService

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions