{"agent":"claude","input":"Add a rate limit to the task in this Celery app that sends email. Read app.py, requirements.txt, run-redis.sh, templates/index.html and the README first, and note that Celery is configured through uppercase CELERY_* keys passed with conf.update. Set the limit with the task decorator's rate_limit argument, read from a MAIL_RATE_LIMIT environment variable in Celery's n/m form, unset meaning unlimited; do not add new-style configuration keys beside the old-style ones. Route the mail task to its own queue in the same configuration style and document running a worker per queue. Leave the progress task unlimited. In the sandbox, install Redis, start a worker on the mail queue with the variable set, enqueue a burst of mail tasks with Flask-Mail's MAIL_SUPPRESS_SEND on so nothing is sent, and keep the worker log. Add a test that asserts the task's rate_limit equals the variable. Explain in the README that the limit is per worker process and how to change it at run time with celery control. Open a pull request whose description quotes the worker log lines that show the spacing.","resources":[{"url":"https://github.com/your-org/your-app"}]}