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

2021-01-09 Thread Theron Luhn
Hi Thierry, I’ve added support for periodic tasks in Pyramid Tasks. https://github.com/luhn/pyramid-tasks#periodic-tasks > On Jan 6, 2021, at 11:46 PM, Adam Groszer wrote: > > You can schedule any task with various options with celery: > >

Re: [pylons-discuss] Re: Pyramid maintenance mode

2021-01-09 Thread Mike Orr
Don't forget the 'asbool()'. Without it the 'in_maintenance' text setting value may be interpreted wrong. E.g., '0' or ' ' or 'false' would evaluate to True. On Sat, Jan 9, 2021 at 11:30 AM Mike Orr wrote: > > The includeme function takes care of all the tween registration for > you, so you just

Re: [pylons-discuss] Re: Pyramid maintenance mode

2021-01-09 Thread Mike Orr
The includeme function takes care of all the tween registration for you, so you just have to include the module using the "pyramid.includes" setting or such. You've got that working. Since you're enabling maintenance mode with a config setting, and you'll have to restart the application to change