Amazing video. Got right to the point, easily described what Redis and Queue Manager does and a great demonstration. This video deserves more views. Cheers Julian.
If anyone else got this error like me : "ValueError: Functions from the __main__ module cannot be processed by workers" try and put your "background_task()" in a different file and import it here from that module. Works.
I'm trying to follow your tutorial, but I got ValueError: Functions from the __main__ module cannot be processed by workers when enqueue the backgroup_task..... why are you able to run the function that's defined inside of your main script ?
How do you get and do something with the return of the queued task? Say your queued task returns a number you want to then display on the client after its been processed. In your example the return len(q)
Thx for this video. Very helpful. How would retrieve the value of (n) which is return by the background task once this finished to be executed by the redis worker?
i have function and i want that to be executed as background task , but that function internally creates two processes using multiprocessing module will that work fine ? could you please help me with this
Hi julian. Thanks for the video. Wanted to ask you if you are going to make a video about thread synchronization and sending the output back to the web client. Thanks.
hi i got this error on the worker .... UnpickleError: (u'Could not unpickle', ValueError('unsupported pickle protocol: 4',)) does anyone have any idea?
I am a bit confused on this point, if this is in a production environment...if a user placed a job on the que would it immediately run if they dont have jobs on the que or would if wait for lets say another logged in users job to finish on the que?
Nice Tutorial and thank you. How would you proceed if you do not know how long a task will take to execute. And how would you store them in a DB to be executed one by one and in serial?
Heu @JulianNash #JulianNash I followed your tutorial and then tried to transfer it into my larger project and I get an important error for my root project name... Whats with that?
Hi Julian, Thanks for a great video, I really enjoy your videos. I am having an issue where q_len is never updating (when I print q_len in the terminal, it continues to show 0 even when I refresh). Could you (or one of the great community) provide some guidance as to what is causing this? Many thanks in advance.
I was confused about this for a while as well. Julian looks to be using Windows Subsystem for Linux (WSL) and you can develop everything on the Linux side in a virtual environment that you set up there. You can access your C: drive through '/mnt/c'. If you look at Julian's terminal, you can see that's how he did it.
What's with the terrible beat playing in the background? It's pretty distracting, bro. Sick backwards hat, though bro. That shows me you're a pretty cool guy, and the sick tattoos also show me that. Awesome. I bet you hang out with a lot of babes, huh? They probably just laugh at you, though, huh? Keep it real, Juilos. Keep it real.
Solid tutorial bro, way better than some of the ones I found online that overcomplicated the hell out of this
Amazing video. Got right to the point, easily described what Redis and Queue Manager does and a great demonstration. This video deserves more views. Cheers Julian.
If anyone else got this error like me :
"ValueError: Functions from the __main__ module cannot be processed by workers"
try and put your "background_task()" in a different file and import it here from that module. Works.
Thankyou man
why is that happen?
This is the solution, thanks for sharing with us
I'm trying to follow your tutorial, but I got ValueError: Functions from the __main__ module cannot be processed by workers when enqueue the backgroup_task..... why are you able to run the function that's defined inside of your main script ?
How is it that you only have 700 subs? This content was excellent, will promote.
Total goldmine, but he has gained 260 subscribers in the last 30 days, so things are looking good!
Thanks, this is very consise and clean, good one, I was also searching for same kind of tutorial with celery and django.
How do you get and do something with the return of the queued task? Say your queued task returns a number you want to then display on the client after its been processed. In your example the return len(q)
I was wondering the same thing. Did you find info on this?
python-rq.org/docs/results/ useful info that addresses this
Thx for this video. Very helpful. How would retrieve the value of (n) which is return by the background task once this finished to be executed by the redis worker?
ValueError: Functions from the __main__ module cannot be processed by workers.
i have function and i want that to be executed as background task , but that function internally creates two processes using multiprocessing module
will that work fine ?
could you please help me with this
noice !, no BS no lengthy explanation on stuff that i dont need, just have to ignore the windows10 and the vscode but cant have it all, Subbed !
Hi julian. Thanks for the video. Wanted to ask you if you are going to make a video about thread synchronization and sending the output back to the web client. Thanks.
hi i got this error on the worker ....
UnpickleError: (u'Could not unpickle', ValueError('unsupported pickle protocol: 4',))
does anyone have any idea?
I have the same, still struggling what to do with it. Did you find any solution?
I am a bit confused on this point, if this is in a production environment...if a user placed a job on the que would it immediately run if they dont have jobs on the que or would if wait for lets say another logged in users job to finish on the que?
Starting a project using Python + RQ.. this helps big time. Thanks!
Nice Tutorial and thank you. How would you proceed if you do not know how long a task will take to execute. And how would you store them in a DB to be executed one by one and in serial?
link does not work. 403. for all routes. {
"kind": "Status",
"apiVersion": "v1",
"metadata": {
},
"status": "Failure",
"message": "forbidden: User \"system:anonymous\" cannot get path \"/\"",
"reason": "Forbidden",
"details": {
},
"code": 403
}
Why not factory? It's Pt 21, not Pt 2, right?
Hey does any one have a git repo of this? Getting an error TypeError: hset() got an unexpected keyword argument 'mapping'
Heu @JulianNash #JulianNash I followed your tutorial and then tried to transfer it into my larger project and I get an important error for my root project name... Whats with that?
Subscribed right away ... you took away my headache :)
Nice example. Good for start. Thanx Julian!
Thanks, that was most helpful and at the the right pace!
Big ups my guy. You're a life saver
Hi how can you spawn multiple rq workers to increase performance ?
Hi Julian, Thanks for a great video, I really enjoy your videos. I am having an issue where q_len is never updating (when I print q_len in the terminal, it continues to show 0 even when I refresh). Could you (or one of the great community) provide some guidance as to what is causing this? Many thanks in advance.
providing links to the code files in your patreon, if you're not already doing it, might incentivize more people to support you.
Very nice and clean explanation. Subscribed!
child_pid = os.fork()
AttributeError: module 'os' has no attribute 'fork'
I'm experiencing the same thing. Have you found a workaround?
@@jeremydeceuster6912 you need WSL
How are you running Redis on Windows? Which version?
I was confused about this for a while as well. Julian looks to be using Windows Subsystem for Linux (WSL) and you can develop everything on the Linux side in a virtual environment that you set up there. You can access your C: drive through '/mnt/c'. If you look at Julian's terminal, you can see that's how he did it.
What about music? The music is very disturbing, no words are heard.=(
The topic is very interesting and important
are you from poland street mate?
Thank you sooo much, it's very helpful and informative.
Thank you very much! Great tutorial!
Thank you.
Thank you! This helps big time!
10:03 made me believe something's wrong with my earphones
Thanks
Lit tutorial !
I admire you
thx!
If anyone looking for sample project [python+redis+docker with rq-dashboard for monitoring] - github.com/anandjoshi91/thumbnailed
What's with the terrible beat playing in the background? It's pretty distracting, bro. Sick backwards hat, though bro. That shows me you're a pretty cool guy, and the sick tattoos also show me that. Awesome. I bet you hang out with a lot of babes, huh? They probably just laugh at you, though, huh? Keep it real, Juilos. Keep it real.