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.
@raoofnaushad43184 жыл бұрын
Thankyou man
@boychoi9x4 жыл бұрын
why is that happen?
@tahep39062 жыл бұрын
This is the solution, thanks for sharing with us
@la_da_kid4 жыл бұрын
Solid tutorial bro, way better than some of the ones I found online that overcomplicated the hell out of this
@lewismenelaws23445 жыл бұрын
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.
@arjunraghav0072 жыл бұрын
Thanks, this is very consise and clean, good one, I was also searching for same kind of tutorial with celery and django.
@raihanflores5 жыл бұрын
Starting a project using Python + RQ.. this helps big time. Thanks!
@dano21695 жыл бұрын
How is it that you only have 700 subs? This content was excellent, will promote.
@ServetEdu5 жыл бұрын
Total goldmine, but he has gained 260 subscribers in the last 30 days, so things are looking good!
@sergeyshevtsov51255 жыл бұрын
Nice example. Good for start. Thanx Julian!
@csvjcsvj33255 жыл бұрын
Thanks, that was most helpful and at the the right pace!
@qudusagbalaya1694 жыл бұрын
Big ups my guy. You're a life saver
@dorson382 жыл бұрын
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?
@LockStockNBarrel5 жыл бұрын
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)
@michaels82974 жыл бұрын
I was wondering the same thing. Did you find info on this?
@michaels82974 жыл бұрын
python-rq.org/docs/results/ useful info that addresses this
@rayanfernandes26314 жыл бұрын
Subscribed right away ... you took away my headache :)
@aatkarelse82184 жыл бұрын
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 !
@gopalkisi86653 жыл бұрын
ValueError: Functions from the __main__ module cannot be processed by workers.
@dorson382 жыл бұрын
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?
@alxizr4 жыл бұрын
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.
@misterarek41364 жыл бұрын
Very nice and clean explanation. Subscribed!
@kevinnordio11452 жыл бұрын
providing links to the code files in your patreon, if you're not already doing it, might incentivize more people to support you.
@ALaaHamoudah4 жыл бұрын
Thank you sooo much, it's very helpful and informative.
@ADQ822 жыл бұрын
Thank you.
@leonchen46093 жыл бұрын
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 ?
@dheerajthodupunoori74313 жыл бұрын
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
@ilias47804 жыл бұрын
Thank you very much! Great tutorial!
@jamesang78614 жыл бұрын
hi i got this error on the worker .... UnpickleError: (u'Could not unpickle', ValueError('unsupported pickle protocol: 4',)) does anyone have any idea?
@istvanmeszaros41124 жыл бұрын
I have the same, still struggling what to do with it. Did you find any solution?
@mikeom13083 жыл бұрын
Hey does any one have a git repo of this? Getting an error TypeError: hset() got an unexpected keyword argument 'mapping'
@PriyanshuKumarleomessi103 жыл бұрын
10:03 made me believe something's wrong with my earphones
@michaels82974 жыл бұрын
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?
@dreamdomroy4 жыл бұрын
Thank you! This helps big time!
@clikcspeed Жыл бұрын
Thanks
@eaglebrett4 жыл бұрын
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.
@berrodriquez262 жыл бұрын
Lit tutorial !
@tejasarlimatti84205 жыл бұрын
Hi how can you spawn multiple rq workers to increase performance ?
@yomajo2 жыл бұрын
Why not factory? It's Pt 21, not Pt 2, right?
@Zerro10094 жыл бұрын
What about music? The music is very disturbing, no words are heard.=( The topic is very interesting and important
@gabeaboy61534 жыл бұрын
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?
@ricardcantm4 жыл бұрын
I admire you
@lokeshagarwal8734 жыл бұрын
child_pid = os.fork() AttributeError: module 'os' has no attribute 'fork'
@jeremydeceuster69124 жыл бұрын
I'm experiencing the same thing. Have you found a workaround?
@foxcorgi89412 жыл бұрын
@@jeremydeceuster6912 you need WSL
@Superdooperhero5 жыл бұрын
How are you running Redis on Windows? Which version?
@mattgregory97755 жыл бұрын
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.
@Marwin3st5 жыл бұрын
thx!
@pial24614 жыл бұрын
are you from poland street mate?
@anandjoshi67654 жыл бұрын
If anyone looking for sample project [python+redis+docker with rq-dashboard for monitoring] - github.com/anandjoshi91/thumbnailed
@lonnybulldozer84265 жыл бұрын
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.
@sayhellotoroy2 жыл бұрын
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 }