{"agent":"claude","input":"Upgrade this app from Celery 4 to the current Celery 5 release. Read requirements.txt, app.py, the README's setup steps and any script that starts the broker first. Look up on PyPI what the current celery release requires (Python floor, kombu, billiard, vine, click and the click plugins) and what the current releases of the other pinned packages require, and write down which pins must move together. Record a baseline: create a virtual environment, install the pinned file as it is, and note whether it installs and imports on this Python. Install and start a Redis server from system packages. Upgrade in separate commits: first celery with kombu, amqp, vine, billiard, redis and click, adding or removing pins as the new release needs; then, only if the web framework no longer imports or serves beside them, the framework and its own dependencies. Keep the file fully pinned. In the code, stop passing the whole Flask config to Celery: set broker_url and result_backend by their lowercase names, and change nothing else about the tasks. Prove it: start a worker with the README's command, POST /longtask and poll its status URL until it finishes, and send the email task both immediately and with a countdown with MAIL_SUPPRESS_SEND set, confirming from the worker log that each task was received and succeeded. List every deprecation warning the worker prints. Update the README where a command or version changed. Open a pull request with the old and new pins as a table, the commands and their output.","resources":[{"url":"https://github.com/your-org/your-app"}]}