Skip to content

Commit

Permalink
Move lock to /tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
cmd-ntrf committed Jan 13, 2025
1 parent d0e82db commit b798db9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/slurm_autoscale_tfe/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def main(command, set_op, hostlist):
hosts = frozenset(expand_hostlist(hostlist))
tfe_client = connect_tfe_client()

with FileLock("slurm_autoscale_tfe_pool.lock"):
with FileLock("/tmp/slurm_autoscale_tfe_pool.lock"):
var_id, tfe_pool = get_pool_from_tfe(tfe_client)
next_pool = set_op(tfe_pool, hosts)
if tfe_pool != next_pool:
Expand Down

0 comments on commit b798db9

Please sign in to comment.