We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6b4de27 commit 3157b93Copy full SHA for 3157b93
asimov/cli/project.py
@@ -106,6 +106,9 @@ def make_project(
106
else:
107
logger.warning("No scheduler detected, defaulting to HTCondor")
108
109
+ # Create scheduler section and set type
110
+ if not config.has_section("scheduler"):
111
+ config.add_section("scheduler")
112
config.set("scheduler", "type", scheduler_type)
113
114
# Set scheduler-specific configuration
@@ -116,6 +119,9 @@ def make_project(
116
119
117
120
config.set("condor", "user", user)
118
121
elif scheduler_type == "slurm":
122
+ # Create slurm section if it doesn't exist
123
+ if not config.has_section("slurm"):
124
+ config.add_section("slurm")
125
# Set the default slurm user
126
if not user:
127
config.set("slurm", "user", getpass.getuser())
0 commit comments