Skip to content

Commit

Permalink
Bugfix: Actually run disk-quota in mila code
Browse files Browse the repository at this point in the history
Signed-off-by: Fabrice Normandin <normandf@mila.quebec>
  • Loading branch information
lebrice committed Sep 25, 2023
1 parent 0812760 commit 60f419e
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions milatools/cli/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -542,14 +542,7 @@ def code(
if command is None:
command = os.environ.get("MILATOOLS_CODE_COMMAND", "code")

check_disk_quota(remote)

cnode = _find_allocation(
remote, job=job, node=node, alloc=alloc, job_name="mila-code"
)
if persist:
cnode = cnode.persist()
data, proc = cnode.ensure_allocation()
check_disk_quota(remote)

cnode = _find_allocation(
remote, job_name="mila-code", job=job, node=node, alloc=alloc
Expand Down

0 comments on commit 60f419e

Please sign in to comment.