Skip to content

Commit

Permalink
worker: fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
markokr committed Jul 11, 2022
1 parent 92d5711 commit 22cb2eb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pgq/cascade/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,10 @@ def is_batch_done(self, state: DictRow, batch_info: BatchInfo, dst_db: Connectio
# on combined-branch the target can get several batches ahead
if self._worker_state and self._worker_state.wait_behind:
self.wait_for_tick(dst_db, batch_info['tick_id'])
state = self._consumer_state

# refresh state
if self._consumer_state:
state = self._consumer_state

# handle combined_queue type change (branch->root)
if self._worker_state and self.was_wait_behind:
Expand Down

0 comments on commit 22cb2eb

Please sign in to comment.