Skip to content

Commit bcbbb0c

Browse files
committed
fix small bug in worker soft reset
Signed-off-by: ashiven <nevisha@pm.me>
1 parent 29d0e33 commit bcbbb0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

embark/workers/tasks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -602,10 +602,10 @@ def worker_soft_reset_task(worker_id, only_reset=False):
602602
"""
603603
ssh_client = None
604604
try:
605+
worker = Worker.objects.get(id=worker_id)
605606
if not only_reset:
606607
# Remove the worker from the orchestrator
607608
orchestrator = get_orchestrator()
608-
worker = Worker.objects.get(id=worker_id)
609609
orchestrator.remove_worker(worker, check=False)
610610

611611
# Reassign the analysis running on the worker

0 commit comments

Comments
 (0)