You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[ ] Regression
[ ] Bug report
[x] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead post your question on Stack Overflow.
I'm submitting a...
Current behavior
Cannot set runOnInit by Cron decorator
https://github.com/nestjs/schedule/blob/master/lib/decorators/cron.decorator.ts#L22
Expected behavior
Can set runOnInit by Cron decorator.
I think you can use runOnInit options instead of starting cron on application bootstrap
https://github.com/nestjs/schedule/blob/master/lib/scheduler.orchestrator.ts#L81
Minimal reproduction of the problem with instructions
What is the motivation / use case for changing the behavior?
You can decide to run a cron at startup or not. I know you can use "Dynamic Cron jobs" but I think using decorators is a better way.
Environment
The text was updated successfully, but these errors were encountered: