You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(please note that the redis instance connection is through a free service for the reproduction to work, so if you get a connection error just retry to run the provided code)
This is indeed the current behavior. Feel free to submit a PR to change this behavior. Also open to documentation PRs if you think this behavior is unclear from the README.
Activity
patriceperez commentedon Mar 15, 2016
@LewisJEllis did you get a chance to look at this?
Americas commentedon Apr 12, 2016
I might be mistaken, but it seems to be sync/async problems. Due to the for loop.
https://tonicdev.com/570cd3203b688414008b3d6f/bee
patriceperez commentedon Apr 12, 2016
@Americas
how do you mean?
Americas commentedon Apr 12, 2016
a for loop is synchronous, so when it calls other functions, they will be added to a function queue, and only run when the current function stops.
But to check job progress you can just use the
job.on("progress", function(){} )and it works by events.patriceperez commentedon Apr 12, 2016
yeah, that is established - however on redis the key for the job details
does not update with the progress nor the status at the moment.
I know the status issue has been resolved but was not released yet though...
Americas commentedon Apr 12, 2016
Well, it worked on my tweaked version of your code
patriceperez commentedon Apr 12, 2016
all your iterations still output 0 as the progress, am I missing something?
Americas commentedon Apr 12, 2016
when I run it, although it has a delay, the progress is updated.
The first tick shows 0, the second 25, and the last has 75.
patriceperez commentedon Apr 12, 2016
I'm not seeing it - when I run your code it outputs progress as 0 until the job is done, which gets progress up to 100 instantly
skeggse commentedon Jul 20, 2017
I'll add a unit test for this functionality in #64.
skeggse commentedon Aug 9, 2017
This is indeed the current behavior. Feel free to submit a PR to change this behavior. Also open to documentation PRs if you think this behavior is unclear from the README.
primadi commentedon Nov 28, 2017
I have long job process, so my scenario is :
Perhaps I am doing wrong ? what is right scenario for my problem ?
primadi commentedon Nov 28, 2017
looking to source code, reportProgress communicate using event, not updating job progress..
Am I have to track progress manually, or there is another way ?