Task: Execute a Function After Flask Returns Response
Task: Execute a Function After Flask Returns Response: a task in Terminal-Lego-15k (Harbor dataset). Implement a Flask web application that returns a response to the client immediately, and then executes a background function after the response has been sent. This is useful for performing cleanup…
The task
Implement a Flask web application that returns a response to the client immediately, and then executes a background function **after** the response has been sent. This is useful for performing cleanup tasks, sending notifications, or doing additional processing without making the client wait.
Part of PrimeIntellect/Terminal-Lego-15k.