Questions tagged [laravel-jobs]

135 questions
0
votes
1 answer

How to update column in table if api results have been modified

My application: My application allows users to predict the scores of all upcoming soccer games for the next matchday. I get this data from an API and store the upcoming games in my database. These upcoming games have a status of Scheduled. Now I…
Dax
  • 767
  • 4
  • 11
  • 29
0
votes
0 answers

how to implement/Handle auto bidding using laravel?

I am currently in the process of building a online auction website with similar features like in Mytokuri.in / Bidderboy.com . My website is complete around 90% complete. I face an obstacle of creating or building an auto bidding system handled at…
0
votes
0 answers

Multiple Laravel App using the same table job

I am working with 3 HTTP servers using the same Laravel app and sharing the same DATABASE, where the first server realize the LoadBalance using nginx, basically with the same weight. The application works in many queue of jobs using the database's…
Tuyoshi Vinicius
  • 861
  • 8
  • 22
0
votes
1 answer

Laravel check if job extends a certain class

I know you can listen to job events using before, after and failing hooks: https://laravel.com/docs/5.6/queues#job-events Queue::before(function (JobProcessing $event) { // $event->connectionName // $event->job //…
Stephan-v
  • 19,255
  • 31
  • 115
  • 201
0
votes
1 answer

Laravel Job not recognizing object property

I am passing a request to a job class to send an email for a contact form. The issue is that I cannot directly access the property. I set the $request in the constructor as $this->request = $request; In the handle() method, I do this: \Log::info(…
Dan
  • 919
  • 1
  • 10
  • 28
0
votes
0 answers

Laravel queue with Supervisor running twice - first time without logging

So, I configured my QUEUE_DRIVE with redis. The queue.php: 'redis' => [ 'driver' => 'redis', 'connection' => 'default', 'queue' => 'default', 'expire' => 90, 'retry_after' => 550 …
Tudor-Radu Barbu
  • 444
  • 1
  • 11
  • 28
0
votes
3 answers

Laravel 5.5 Job Chaining: Call to undefined method ::chain()

I have two jobs, first one needs to dispatch second before run, I find out job chain but can't make it work, all jobs set up from box, so in theory it should just work. Here is my first job: namespace App\Jobs; class MCSendJob { use…
Oleg Shakhov
  • 426
  • 6
  • 27
0
votes
1 answer

Exception Serialization of 'Closure' is not allowed in Queue.php (line 127)

I have this situation where I would have multiple post requests in a single page. The user is supposed to search for affixes (prefix, infix, suffix) so I made 3 search bars for each of them. I finally(?) found a solution to the problem, but another…
0
votes
0 answers

Laravel queue: How to track progress and know which sub jobs suceeded/failed

Currently im building a platform where android FCM messages have to be sent out to devices which has my app installed. I have a notification builder in my backend which will allow an admin to add notifications. This also dispatches a NotificationJob…
Prasanth
  • 577
  • 1
  • 9
  • 24
-1
votes
0 answers

Issue when triggering notifications with emoji in Laravel jobs

I'm trying to send a FCM notification and email notification through laravel jobs but it is throwing: "ReflectionException: Class does not exist in /data/houzeo/vendor/laravel/framework/src/Illuminate/Container/Container.php:877" I…
-1
votes
1 answer

Why Jobs on laravel crashes my computer when I'm using linux? but works fine when I'm using Windows?

I have been a laravel developer for 1 year already..Before I used laravel on Windows but since I use Linux..I have a Big problem on Jobs in laravel..every time I start a Job on linux my machine crashes.. but on windows everything works fine. //my…
Level
  • 1
  • 1
-1
votes
1 answer

How to test a scheduled job in laravel

I have one issue with testing and I hope you can help me. I have a scheduled job that collects information about others websites. it is a web crawler. This is the job:
DeveloperX
  • 517
  • 5
  • 23
-1
votes
1 answer

Difference between parameters passed at queue:work and config/queue.php in Laravel

In Laravel, what is the difference between parameters passed at queue:work and config/queue.php Both have similar parameters and are used to specify parameters like timeout, etc for the jobs in queue Then where lies the difference, is it that , the…
Aditya Rewari
  • 2,343
  • 2
  • 23
  • 36
-2
votes
1 answer

How to use transaction inside Job OR how to rollback model write operation inside job when it runs out of memory?

Hi, I have a job which process below operations: Import data, save in db Change status of saved records Dispatch event with saved records for further operations. At point 2. queue process runs out of memory and get killed. So I want to use a…
Himakar
  • 345
  • 4
  • 17
-2
votes
1 answer

Laravel Jobs (Queue) do not worked

I have a problem with one of my Jobs laravel. (This is the first time that i exepect this problem, i have anothers jobs who is working without problems...) I have a listener who dispatch a job when one model is updating, so : One model observer…
tom1337
  • 228
  • 3
  • 11
1 2 3
8
9