Open oxabz opened 4 years ago
I marked it as an enhancement.
I confirm this issue.
Although I agree it is an inconsistent behaviour there are several workarounds for this so it is not very high prioritized.
What are the workarounds? Retrieving the job by using Queue.getJob() before sending the progress event doesn't seem to work either.
@pascalprat you should not need any workarounds. The progress is reported as an event and that is they way it should be handled in your code. In a distributed system you cannot just rely on a particular instantiation of a job class to handle the progress reports. If you write your code listening to the events and reporting that to the user it would be the more robust and scalable way to do it.
Summary
The progress value of the Job returned by
Queue.add()
isn't updated. It's a surprising behavior considering that the Job objects returned by the events are. Is it an intended behavior? If it is it should probably be added in the reference documentationReproduce / Test
When executing this program :
We obtain the following traces :
Version