Before checking whether the Worker is allowed to do work (i.e. is in `awake` state), check any queued-up status changes. Those should be communicated, before saying "no work for you", so that the Worker can actually respond to it.
gorm.Model
persistence.Model
pkg/api/flamenco-manager.yaml
flamenco-openapi.yaml