Support the ongoing development of Laravel.io →
posted 9 years ago
Queues
Last updated 1 year ago.
0

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.

0

mcraz,

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.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

maxirus maxirus Joined 11 Mar 2015

Moderators

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

Your logo here?

Laravel.io

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

© 2024 Laravel.io - All rights reserved.