Re: [pylons-discuss] Re: Creating sub-processes from Pyramid application

2021-01-04 Thread Thierry Florac
Hi (again)! I think it's finally OK! I forgot ZCA hook is based on Pyramid's "current registry", which is bound to a thread-local variable, so that's why I have to push them on threadlocal manager in my threads "run" methods (and not in the constructor as I have tried before)!! Maybe there is

Re: [pylons-discuss] Re: Creating sub-processes from Pyramid application

2021-01-04 Thread Thierry Florac
Hi Jonathan, I didn't have a look at Celery yet, maybe it could work... My goal is to be able to start long-running tasks (medias files conversions for example) whose definition is stored in database and managed by end users from my main Pyramid application; for this, I create a dedicated

[pylons-discuss] Re: Creating sub-processes from Pyramid application

2021-01-04 Thread 'Jonathan Vanasco' via pylons-discuss
Have you considered using Celery for this? I started offloading everything related to subprocesses and message queues to it a while back, and have been much happier. On Monday, January 4, 2021 at 11:20:46 AM UTC-5 tfl...@gmail.com wrote: > Hi, > > I need to create custom sub-processes from my

[pylons-discuss] Creating sub-processes from Pyramid application

2021-01-04 Thread Thierry Florac
Hi, I need to create custom sub-processes from my main Pyramid application; these processes are used to handle "commands" received from ZeroMQ messages. If I use the components registry to register adapters and utilities which are also required in these processes, is there a way to start these