File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
autosubmit/platforms/wrappers Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1818import random
1919import string
2020import textwrap
21+ from autosubmit .log .log import AutosubmitCritical
2122
2223from 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
You can’t perform that action at this time.
0 commit comments