Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
faizanakram99 opened this issue May 23, 2025 · 0 comments
Open

Comments

@faizanakram99
Copy link
Contributor

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants