{"agent":"claude","input":"Add job timeouts to this Flask RQ app. Read project/server/main/views.py, project/server/main/tasks.py, project/server/config.py, project/server/__init__.py, manage.py, project/tests/base.py, project/tests/test_main.py, docker-compose.yml, Dockerfile, requirements.txt and .python-version first. Add RQ_JOB_TIMEOUT, RQ_RESULT_TTL and RQ_FAILURE_TTL to BaseConfig, build the Queue in views.py with default_timeout from the first and pass result_ttl and failure_ttl on enqueue. On GET /tasks/<id> add a timed_out flag and the last line of exc_info when the job is failed. Add project/tests/test_tasks.py: enqueue create_task with job_timeout one second and a type that sleeps longer, run the forking Worker in burst mode against the configured Redis, assert the job is failed and exc_info names JobTimeoutException; and a second test where a fast type returns True. Install Redis in your sandbox, run python manage.py test and paste the output with the worker's log for the killed job, then start the app and a worker, post a slow type, and paste the status JSON after the timeout. Change no task function and no pin.","resources":[{"url":"https://github.com/your-org/your-app"}]}