I have created job in laravel app. Problem is when I trigger job on localhost it work perfectly but when I trigger it on live server it doesn't work in one go. I need to trigger it multiple time . I can see on telescope that job is pending for hours.
Is it issue with supervisor on server?
Basically Job is running inside controller function I trigger it on route.
public function sumUpInvoiceTotal($invoice_id)
{
Invoice::find($invoice_id)->update(['sum_up'=> 0]);
InvoiceChargeSum::dispatch($invoice_id,Auth::user()->id);
return redirect()->route('invoices.show', $invoice_id)->with('success', 'Invoice Total Sum-up request received. You will get Notification on Completion');
}
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire