Skip to content

Commit

Permalink
remove redundant operation in Runner
Browse files Browse the repository at this point in the history
  • Loading branch information
gpetretto committed Mar 5, 2024
1 parent 555ede5 commit 19e0c8a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
6 changes: 0 additions & 6 deletions src/jobflow_remote/jobs/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,12 +282,6 @@ def run(
self.update_batch_jobs
)

if complete:
self.advance_state(states)
scheduler.every(self.runner_options.delay_advance_status).seconds.do(
self.advance_state, states=states
)

try:
ticks_remaining: int | bool = True
if ticks is not None:
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/test_slurm.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def test_job_with_callable_kwarg(worker, job_controller):
submit_flow(flow, worker=worker)

runner = Runner()
runner.run(ticks=10)
runner.run(ticks=12)

assert job_controller.count_jobs({}) == 3
assert len(job_controller.get_jobs({})) == 3
Expand Down

0 comments on commit 19e0c8a

Please sign in to comment.