Coravel Cron Not running at specific time #287
-
Hi, I'm using coravel as schedule worker, I have a problen when I try to use a cron expresion to trigger the task, for example if I put my cron expression like "* * * * *" the task runs every minute, but if I want to lunch it daily at specific time it doesnt work. For example Thank you very much if you can help me with this issue The next code is the implementation:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
That looks correct... why don't you try to use the global error handling: https://docs.coravel.net/Scheduler/#global-error-handling I think the following would work:
Or just write the exception to the console. Normally errors are ignored to fail gracefully, but here with the You might find that there's a missing DI registration or something. Let me know if that helps to find what's going on. |
Beta Was this translation helpful? Give feedback.
That looks correct... why don't you try to use the global error handling: https://docs.coravel.net/Scheduler/#global-error-handling
I think the following would work:
Or just write the exception to the console. Normally errors are ignored to fail gracefully, but here with the
OnError
method you can be more specific about what happens when an exception occurs.You might find that there's a missing DI registration or something.
Let me know if that helps …