Home Assistant leases the next Job #144
Notifications
Due Date
No due date set.
Blocks
Depends on
#145 Jobs fail after three unanswered leases
bobby/hapi
#146 Report a Job result
bobby/hapi
#152 Job and Home Assistant metrics
bobby/hapi
#143 Cancel Jobs; expiry is derived
bobby/hapi
Reference: bobby/hapi#144
Reference in new issue
Block a user
Part of #73 (spec: #72)
What to build
GET /v1/smart_home/jobs/nextreturns the oldest eligible Job (FIFO bynot_beforeor creation; not leased, not expired, not beforenot_before) and leases it for 2 minutes, incrementing attempts. Every call records HA's last-poll time.Acceptance criteria