mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-09 07:09:11 +02:00
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:
parent
c3ad5e9ecb
commit
f81d6c07d8
4 changed files with 77 additions and 2 deletions
|
|
@ -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 |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue