Skip to content

Commit

Permalink
Request 30GB of disk for Gridpack jobs (#40)
Browse files Browse the repository at this point in the history
1. Set the attribute `RequestDisk` to 30*1e6 KB
  • Loading branch information
ggonzr authored Jan 26, 2024
1 parent eba90d2 commit 855b93d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gridpack.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
from ssh_executor import HTCondorExecutor


MEMORY_FACTOR_MB = 1000
MEMORY_FACTOR_MB = int(1e3)
DISK_FACTOR_KB_TO_GB = int(1e6)


class Gridpack():
Expand Down Expand Up @@ -525,6 +526,7 @@ def prepare_jds_file(self):
"log = job.log",
f"RequestCpus = {self.get_cores()}",
f"RequestMemory = {self.get_memory()}",
f"RequestDisk = {30 * DISK_FACTOR_KB_TO_GB}",
'requirements = (OpSysAndVer =?= "AlmaLinux9")',
f'+AccountingGroup = "{chosen_group}"',
"leave_in_queue = JobStatus == 4 && (CompletionDate =?= UNDEFINED || ((CurrentTime - CompletionDate) < 7200))",
Expand Down

0 comments on commit 855b93d

Please sign in to comment.