-
Notifications
You must be signed in to change notification settings - Fork 121
Update status in method within worker #140
Comments
Looking for same @jameshaythornthwaite Anything you have managed yet? I particularly want to use the |
I've managed to "work around" this by not passing the job_id to my class with the slow method in it but the entire job itself instead. It might not be best practice but it surely works.
|
Also looking for something like this! |
The solution I posted above works very well for me. I use it in production systems on a daily basis. |
Thanks @jay2u, I considered your solution but it is a bit tough for me as it would require passing |
@echan00 It is important however that all your methods in It's still a bit contrived but it should hopefully do the trick for you. Here's an example:
|
@jay2u thanks will try this and let you know! |
@jay2u working well thanks! |
I have a worker with a method that takes a long time to execute and would like to update the progress status within this method. Currently my plan is to pass the job ID to the method and then periodically update it but i cannot work out how to do this, I have only managed to retrieve the status but not set it.
The other class with the method called in it:
The text was updated successfully, but these errors were encountered: