Support the ongoing development of →
posted 9 years ago
Last updated 1 year ago.

I once has a similar kind of problem. I solved it by :

  • Creating a database for QueueJobs. (id, job_id, upload_id, user_id, progress, ...)
  • When you receive a job from queue, create a new QueueJobs record setting the progress to 0.
  • In your jobHandlerClass, inside your setProgress() method, whenever the progress value is changed, update the same to the database.

This way, you can link the upload done by the user to queue, track and show the status for the same to the use.



Yea, that was going to be my plan B. I was trying to avoid the extra layer of complexity but it's looking like it may be my only choice.


Sign in to participate in this thread!


Your banner here too?

maxirus maxirus Joined 11 Mar 2015


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

Your logo here?

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

© 2024 - All rights reserved.