I just switched over to Laravel Octane in production and the only thing I have noticed which doesn’t appear to be working is dispatching jobs. I have this line:
return dispatch(new GenerateReport($record, auth()->user()));
This works as expected if I switch the server back to php-fpm, but when I am using octane nothing happens.
Here is the snippet from that job as well
use IlluminateBusQueueable;
use IlluminateContractsQueueShouldQueue;
use IlluminateFoundationBusDispatchable;
use IlluminateQueueInteractsWithQueue;
use IlluminateQueueSerializesModels;
use IlluminateSupportFacadesStorage;
use FilamentNotificationsActionsAction;
use FilamentNotificationsNotification;
class GenerateReport implements ShouldQueue
{
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;