Load task settings from .env; gate root publish on fastmcp-tasks; fix worker command

DocketSettings now loads the same dotenv source as core settings, so a
FASTMCP_DOCKET_* value in .env configures the backend instead of silently
using memory://. The root fastmcp publish waits for the matching fastmcp-tasks
to appear on PyPI before uploading, so the [tasks] extra is never installable
but unresolvable. And the example README uses the real worker entry point
(python -m fastmcp_tasks.worker_cli worker).
This commit is contained in:
Jeremiah Lowin 2026-07-23 18:30:52 -04:00
commit f81d6c07d8
No known key found for this signature in database
4 changed files with 77 additions and 2 deletions

View file

@ -59,8 +59,8 @@ cd examples/tasks
docker compose up -d
export FASTMCP_DOCKET_URL=redis://localhost:24242/0 # or: direnv allow
python server.py # in one terminal
fastmcp tasks worker server.py # extra worker(s) in others
python server.py # in one terminal
python -m fastmcp_tasks.worker_cli worker server.py # extra worker(s) in others
```
| Backend | Workers |