Skip to content

Commit

Permalink
Set request_cpus as integer (#220)
Browse files Browse the repository at this point in the history
  • Loading branch information
dachengx authored Sep 25, 2024
1 parent 78ba14a commit 356c4b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions alea/submitters/htcondor.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def __init__(self, *args, **kwargs):

# Resources configurations
self.request_cpus = self.htcondor_configurations.pop("request_cpus", 1)
self.request_memory = self.htcondor_configurations.pop("request_memory", 2000)
self.request_memory = self.htcondor_configurations.pop("request_memory", 2_000)
self.request_disk = self.htcondor_configurations.pop("request_disk", 2_000)
self.combine_disk = self.htcondor_configurations.pop("combine_disk", 20_000)

Expand Down Expand Up @@ -432,7 +432,7 @@ def _initialize_job(
# no other attributes on a local job
return job

job.add_profiles(Namespace.CONDOR, "request_cpus", f"{cores}")
job.add_profiles(Namespace.CONDOR, "request_cpus", cores)

# Set memory and disk requirements
# If the job fails, retry with more memory and disk
Expand Down

0 comments on commit 356c4b1

Please sign in to comment.