Flask - Background Tasks
What will be the response when accessing
/task_status/42 given this Flask route and task_states = {'42': 'failed'}?
@app.route('/task_status/<task_id>')
def task_status(task_id):
task_states = {'42': 'failed'}
return task_states.get(task_id, 'not found')