Skip to content

Conversation

@alfred-sa
Copy link
Contributor

@alfred-sa alfred-sa commented Aug 29, 2018

Hello,

I don't know if it would be useful to someone else, but I needed to implement a concurrency model based on thread (and not processes) in celery because I wanted to pass future objects between tasks and some coroutines and it is not pickable.

Of course it is not scale out and it has limitations (because of the GIL), but it can be useful for people who wants the share memory between tasks and another thread (for example the asyncio event loop) without blocking as the 'solo' concurrency model.

I am open to comment. Maybe this model won't be needed anymore in celery 5 as it could be replaced by an asyncio loop, which is not possible in celery 4.
And I would be happy to help on a massive asyncio refactoring for Celery 5.

Regards

@alfred-sa
Copy link
Contributor Author

Thank you for the review, I will apply your recommandation in the next week.

@alfred-sa
Copy link
Contributor Author

Not yet. I am doing it right now.

@alfred-sa
Copy link
Contributor Author

alfred-sa commented Oct 8, 2018

I have submitted a new RP : #5099

Duplicate of #5099

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant