diff --git a/.github/workflows/packaging.yml b/.github/workflows/packaging.yml index 271479d..1552d30 100644 --- a/.github/workflows/packaging.yml +++ b/.github/workflows/packaging.yml @@ -11,7 +11,7 @@ jobs: github.event.pull_request.head.repo.full_name != github.repository # Packaging for CentOS 7 does not work with other versions, see: # https://github.com/packpack/packpack/issues/145 - runs-on: ubuntu-18.04 + runs-on: ubuntu-latest strategy: fail-fast: false diff --git a/queue/abstract/queue_state.lua b/queue/abstract/queue_state.lua index 6583008..9de20c9 100644 --- a/queue/abstract/queue_state.lua +++ b/queue/abstract/queue_state.lua @@ -65,7 +65,7 @@ local function create_state_fiber(on_state_change_cb) fiber.self():name('queue_state_fiber') while true do if current == queue_state.states.WAITING then - local rc = pcall(box.ctl.wait_rw, 0.001) + local rc = pcall(box.ctl.wait_rw) if rc then current = queue_state.states.STARTUP log.info('Queue state changed: STARTUP') @@ -76,7 +76,7 @@ local function create_state_fiber(on_state_change_cb) log.info('Queue state changed: RUNNING') end elseif current == queue_state.states.RUNNING then - local rc = pcall(box.ctl.wait_ro, 0.001) + local rc = pcall(box.ctl.wait_ro) if rc then current = queue_state.states.ENDING on_state_change_cb(current)