Documentation Index
Fetch the complete documentation index at: https://docs.machinefi.com/llms.txt
Use this file to discover all available pages before exploring further.
Goal
Track async jobs with predictable polling logic and clean terminal-state handling.Polling Workflow
- Create a job with
live-monitororlive-digest. - Store returned
job_id. - Poll
GET /jobs/{job_id}on an interval. - Exit on terminal status:
completed,stopped, orfailed.
Reference Implementation (Python)
Recommended Practices
- Start with 3-5 second intervals.
- Add request timeout guards in your client.
- Treat
404 JOB_NOT_FOUNDas terminal for stale/expired job IDs. - Persist last known status for auditing.
When to Switch Away
Use webhooks or SSE when:- you need lower-latency push updates
- many clients are polling the same stream
- frontend UX needs live progress updates
Next Steps
- Push callbacks: Use Webhooks
- Streaming events: Use SSE Streaming
- Status semantics: Get Job Details