-
Notifications
You must be signed in to change notification settings - Fork 12
Feature: support celery5 and python38 #32
base: master
Are you sure you want to change the base?
Feature: support celery5 and python38 #32
Conversation
3b39bd8
to
149696f
Compare
2db71b5
to
6daaf8b
Compare
the interaction between .delay() and loop.run_until_complete(task).
6daaf8b
to
471aedf
Compare
Some small progress. Now, the test fails as follows:
As per the commit comment, the key issue is between the working and non-working paths in the test is the interaction between the call to .delay() and loop.run_until_complete(task). I've not yet been able to understand how .delay() or .apply_async() actually work, not least in the test environment without an actual broker: that's probably the key to this. |
@ShaheedHaque @kai3341 I figured out what the issue with the test(s) is. I've got a fork of @ShaheedHaque's work and have been working off of that. The short version is that the issue is coming from the way that the test suite is (not) using the I'm 90% sure it's hanging because of the way that the Celery fixtures use threads along with the fact that I've added breakpoints to various functions to help be debug the issue. The short version is that I don't think that I'm to far off from having everything working properly, but I'll keep this thread updated and open a PR when I've got it all 100%. |
Great progress, sounds promising! Let me know if I can help. |
@ShaheedHaque Hoo boy. Ok, so, I think I've got a handle on what the actual issue is but I'm... very not sure what to do about it. Any chance you have Discord or anything more real-time than this thread? I'd love to go over it with you, and I'd bet we could get it knocked out in an afternoon. |
I've not looked at the code in some months, and will be rather stale as a result. That said, I'd be happy to do (say) a Skype session so we can share screens etc. I'm in London, and hence UK timezone. Send me an email at <username>@gmail.com and we can arrange the details. |
@ShaheedHaque I sent off an email this morning, should show up as |
This is NOT ready to be merged.
The eventual goal of this PR is to address #17, #23 and #29. At this time, the bare minimum changes have been applied to be able to launch tox, and have it hang like so:
The proximate reason for the hang is that https://github.com/celery/celery/blob/4f2213a427861cf42b778ef499f29b179d8c40ed/celery/contrib/testing/worker.py#L46 says:
and though the test does do this, somehow the worker thread never starts.