Skip to content

Commit 0993b9c

Browse files
committed
Added some error handling to the builder (not the wrapper script)
1 parent 7d23980 commit 0993b9c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

autosubmit/platforms/wrappers/wrapper_builder.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
import random
1919
import string
2020
import textwrap
21+
from autosubmit.log.log import AutosubmitCritical
2122

2223
from typing import List
2324

@@ -151,6 +152,9 @@ def build_job_thread(self):
151152

152153
# TODO: [ENGINES] Delete hardcoded flux environment setup
153154
def build_main(self):
155+
if not self.job_scripts:
156+
raise AutosubmitCritical("No job scripts found for building the Flux wrapper.", )
157+
154158
return textwrap.dedent("""
155159
# Dependency script generation
156160
cat << 'EOF' > flux_runner.sh
@@ -164,11 +168,7 @@ def build_main(self):
164168
165169
# Load user environment
166170
module load miniconda
167-
168-
echo "Initializing conda environment"
169171
source /apps/GPP/MINICONDA/24.1.2/etc/profile.d/conda.sh
170-
echo "Conda environment initialized"
171-
172172
conda activate flux
173173
conda info
174174

0 commit comments

Comments
 (0)