collective / collective.taskqueue

Asyncore-based asynchronous task queue for Plone
https://pypi.org/project/collective.taskqueue
8 stars 7 forks source link

Support ZConfig on no-ZServer environments #25

Open gforcada opened 3 years ago

gforcada commented 3 years ago

The current way to configure queues is to use ZConfig, but unfortunately it depends on ZServer being around, and unless you are @datakurre you might not be using ZServer on python 3 🙂

I spend way too much time to admit here trying to get that to work, and I thought I could finally find the light at the end the tunnel seeing how haufe.requestmonitoring is being configured, but alas, it is by no means a 1:1 thing, again too much time spent with this as well 🤷🏾

Why is so complicated to define some options in ZConfig? 🤦🏾

datakurre commented 3 years ago

The current way to configure queues is to use ZConfig, but unfortunately it depends on ZServer being around, and unless you are @datakurre you might not be using ZServer on python 3 slightly_smiling_face

I recall that queues are just registered components. So, if you have a queue that works on WSGI server, you should be able to skip the ZConfig part and register them with ZCML in a policy product :thinking:

Btw, last week I was very happy to have ZServer with "good old products directory" also on Python 3 Plones...