Skip to content

Commit

Permalink
Temporary commit
Browse files Browse the repository at this point in the history
  • Loading branch information
catileptic committed Sep 30, 2024
1 parent 4485dc1 commit 477134a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions servicelayer/taskqueue.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ def remove_task(self, task_id, stage):
def checkout_task(self, task_id, stage):
"""Update state when a task is checked out for execution"""
pipe = self.conn.pipeline()
log.critical(f'Pending tasks: {pipe.smembers(make_key(PREFIX, "qds", self.name, stage, "pending"))}')
log.critical(f'Pending tasks: {list(pipe.smembers(make_key(PREFIX, "qds", self.name, stage, "pending")))}')
log.info(f"Checking out task: {task_id}")
# add the dataset to active datasets
pipe.sadd(self.key, self.name)
Expand All @@ -289,7 +289,7 @@ def checkout_task(self, task_id, stage):
pipe.srem(make_key(PREFIX, "qds", self.name, stage, "pending"), task_id)
pipe.sadd(make_key(PREFIX, "qds", self.name, stage, "running"), task_id)

log.critical(f'Pending tasks: {pipe.smembers(make_key(PREFIX, "qds", self.name, stage, "pending"))}')
log.critical(f'Pending tasks: {list(pipe.smembers(make_key(PREFIX, "qds", self.name, stage, "pending")))}')

# TODO - remove after all the wrong keys are gone
stage_key = self.get_stage_key(stage)
Expand Down

0 comments on commit 477134a

Please sign in to comment.