Debian Codegraph @

tests/functional/jobscript/01-share-lib-bin/flow.cylc

raw
1 #!jinja2
2 [scheduler]
3 [[events]]
4 stall timeout = PT0M
5
6 [scheduling]
7 initial cycle point = 1266
8 [[graph]]
9 R1 = install_cold => run_mypythonscript & run_myscript
10
11 [runtime]
12 [[install_cold]]
13 script = """
14 mkdir -p "${CYLC_WORKFLOW_SHARE_DIR}/lib/python"
15 mkdir -p "${CYLC_WORKFLOW_SHARE_DIR}/bin"
16
17 cat > "${CYLC_WORKFLOW_SHARE_DIR}/lib/python/mypythonscript.py" <<__HERE__
18 def my_function():
19 print("I can speak Esperanto like a native.")
20 __HERE__
21
22 cat > "${CYLC_WORKFLOW_SHARE_DIR}/bin/myscript.sh" <<__HERE__
23 #!/usr/bin/bash
24 echo "A sure cure for seasickness is to sit under a tree."
25 __HERE__
26
27 chmod +x "${CYLC_WORKFLOW_SHARE_DIR}/lib/python/mypythonscript.py"
28 chmod +x "${CYLC_WORKFLOW_SHARE_DIR}/bin/myscript.sh"
29 """
30
31 [[run_myscript]]
32 script = myscript.sh
33
34 [[run_mypythonscript]]
35 script = python -c 'from mypythonscript import my_function; my_function()'