X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/e3fe23ff86e3f5f19c0a76779f957adf1310b949..563b588da606aa38cdfd8a35fbc70c7414678747:/services/api/lib/eventbus.rb diff --git a/services/api/lib/eventbus.rb b/services/api/lib/eventbus.rb index 9b15b2c545..1754fc0ae9 100644 --- a/services/api/lib/eventbus.rb +++ b/services/api/lib/eventbus.rb @@ -124,7 +124,9 @@ class EventBus # Number of rows returned was capped by limit(), we need to schedule # another query to get more logs (will start from last_log_id # reported by current query) - @channel.push nil + EventMachine::schedule do + push_events ws, nil + end elsif !notify_id.nil? and (ws.last_log_id.nil? or notify_id > ws.last_log_id) # Number of rows returned was less than cap, but the notify id is # higher than the last id visible to the client, so update last_log_id