I’m new to Python SDK. The statement “await worker.run()” after constructing Worker() appears to be blocking. How can I run a pytest that initiates a worker and then do other things like submitting a job?
worker.run() is an async Python function. You can run multiple async functions concurrently in Python with asyncio helpers (e.g.
asyncio.gather). See asyncio — Asynchronous I/O — Python 3.11.4 documentation.