Category : queue

I’m trying to run the application jobs on a shared host in the scheduler function using: $schedule->command(‘queue:restart’)->everyFiveMinutes(); $schedule->command(‘queue:work’)->everyMinute(); but I get this error: production.ERROR: The Process class relies on proc_open, which is not available on your PHP installation. I have already published the flare.php and did set collect_git_information to false (I also re-cached the application) ..

Read more

I’m coding a Command (queue) in laravel 5.0 and when I run php artisan queue:listen it is all right and working but I get [ErrorException] Undefined index: HTTP_HOST in queue return. public function handle() { $empresa_id = $this->empresa_id; $empresa = Empresas::find($empresa_id); if($empresa->used_storage_record > $empresa->limit_storage_record) { do{ $registros = RepositorioRegistro::where(‘activo’, 1)->whereHas(‘Documento’, function ($query) use ($empresa_id){ $query->where(’empresa_id’, ..

Read more

[when send emails shows these error][1]ReflectionException Method AppMailNewsletter::__invoke() does not exist these is my controlledispatch(new Newsletter($emailSubject,$emailBody,$arrayEmails)); these is my email classpublic function build() { return $this->view(’emails.newsletter’)->subject($this->emailSubject)->with([‘msg’=> $this->emailBody]); } these is my jobs public function handle() { $email = new Newsletter($this->emailSubject,$this->emailBody,$this->arrayEmails); Mail::to($this->arrayEmails)->send($email); } Sourc..

Read more

i want make a simple task for queue laravel. I have this error in "failed_jobs" IlluminateDatabaseEloquentModelNotFoundException: No query results for model……. What did i do wrong? //controller public function addUser(Request $req) { $user = new User; $user->name = $req->name; $user->username = $req->username; $user->email = $req->email; $user->password = bcrypt($req->password); dispatch(new adduser($user)); // adduser::dispatch(); return ‘added’; } ..

Read more

//Dispatch job for ($i = 0; $i < 2500; $i++) { MyTestJob::dispatch($i); } // Job class class MyTestJob implements ShouldQueue { use Dispatchable, InteractsWithQueue, Queueable, SerializesModels; public $tries = 1; protected $i; public function __construct($i) { $this->i = $i; } public function handle(OrderInProcessRepository $orderInProcessRepository) { return true; } } I have a queue job, which ..

Read more

Im new to the laravel. Thus my knowledge about integrating another language into laravel is limited. Thus i needed help. For description, I try to make a calculative webpage. The user input a few json file then the laravel will pass the file to python. Then the python calculate the json file and send back ..

Read more