Files
mtusi2026lab7-fork/migrations/008_dispatch_recovery.sql

5 lines
320 B
SQL

-- An expired worker lease is recovered by the dispatcher before publishing.
GRANT SELECT(active_version) ON attachments TO lab_dispatcher;
GRANT UPDATE(status,error_code,updated_at) ON attachments TO lab_dispatcher;
GRANT UPDATE(state,lease_until,error_code,attempt,next_at,updated_at) ON image_jobs TO lab_dispatcher;