fecgov / openFEC

The first RESTful API for the Federal Election Commission. We're aiming to make campaign finance more accessible for journalists, academics, developers, and other transparency seekers.
https://api.open.fec.gov/developers
Other
479 stars 106 forks source link

Research adding a supervisor to celery #4573

Open jason-upchurch opened 4 years ago

jason-upchurch commented 4 years ago

User story

As a developer, I would like the ability for a supervisor process to oversee celery tasks so that corrective action can be taken outside of the app itself to preserve things like, for example, total number of times app was restarted, so that we don't potentially end up with infinite loops of restart attempts.

This issue stems from https://github.com/fecgov/openFEC/issues/4492, which originally discussed restarting the app from within a task.

Action items:

Completion criteria:

jason-upchurch commented 4 years ago

closing pending research on best practices for placement of celery in different apps.

jason-upchurch commented 4 years ago

flower documentation: https://flower.readthedocs.io/en/latest/ supervisor documentation: http://supervisord.org/index.html