Build your first service
Run your service
Start your worker and API together with a single command. Make sure Redis is running first.You’ll see output showing both the worker and API starting up. The API serves on
http://localhost:8001.What just happened?
upnext.Workercreated a worker that listens for tasks on a Redis queue@worker.taskregisteredprocess_orderas a background task with 3 retries and a 30-second timeoutupnext.Apicreated a FastAPI-powered HTTP server@api.postdefined an endpoint that submits work to the worker via.submit()upnext.run(called byupnext run) started both the worker and API in a single process