You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice to have a standard way to manage all the cron jobs we will eventually use via HTTP requests.
Deliverables
Flask app
Investigate the feasibility of managing cron jobs via HTTP requests
Define routes that refer to a specific function name and listen for POST requests
Should start, stop, restart cron jobs that manage underlying python processes
Can be something basic for now, in the future the route should also accept an authentication token and check it against a database to ensure that a valid user sent the command
Example
@app.route('/process1/<command>')defmanage_process1(command):
# Send start, stop, restart command to some cronjobjob=cron.find_comment('process1')
ifcommand==='start':
job.enable()
Goal
Deliverables
Example
Links
The text was updated successfully, but these errors were encountered: