Support the ongoing development of Laravel.io →
posted 2 years ago
Scheduling
Last updated 2 years ago.
0

Hey!

This is intended, the callAfterCallbacks method is not inside the Event class, it's inside the ScheduleFinishedCommand class (https://github.com/laravel/framework/blob/master/src/Illuminate/Console/Scheduling/ScheduleFinishCommand.php#L43) if I'm not mistaken.

By having a closer look at the buildBackgroundCommand method inside the CommandBuilder class (https://github.com/laravel/framework/blob/master/src/Illuminate/Console/Scheduling/CommandBuilder.php#L46), you can see that the schedule:finish command is executed after the command itself has been executed.

So a few possible situations I can think of:

  • the intended command doesn't execute properly
  • the intended command returns a non-zero exit code
  • the intended command throws an exception which also quits everything after it
  • there's a problem with the path to your binary
  • there's a problem with the (execution/access) rights of your binary
  • there's a problem with the path to the finish command (possibly non globally reachable php binary or other binaries that are needed, ...)
  • running your binary results in a timeout which itself aborts everything after it
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.