Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
csst
Scalebox Apps
Commits
ca9f6ed1
Commit
ca9f6ed1
authored
Dec 20, 2024
by
Zhang Xiaoli
Browse files
增加 --header repeatable=yes 可修改正在运行的task状态,使其重新执行
parent
13b035ca
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
5 deletions
+24
-5
L1/dockerfiles/csst-msc-l1-mbi-photmix/run.sh
L1/dockerfiles/csst-msc-l1-mbi-photmix/run.sh
+18
-2
L1/dockerfiles/csst-msc-l1-mbi/run.sh
L1/dockerfiles/csst-msc-l1-mbi/run.sh
+3
-1
L1/dockerfiles/csst-msc-l1-qc0/run.sh
L1/dockerfiles/csst-msc-l1-qc0/run.sh
+3
-2
No files found.
L1/dockerfiles/csst-msc-l1-mbi-photmix/run.sh
View file @
ca9f6ed1
...
@@ -22,8 +22,24 @@ if test -f "$timefile"; then
...
@@ -22,8 +22,24 @@ if test -f "$timefile"; then
mv
/pipeline/output/timestamp.txt /work/timestamps.txt
mv
/pipeline/output/timestamp.txt /work/timestamps.txt
fi
fi
rm
-rf
/pipeline/input/
*
/pipeline/output/
*
headers
=
$2
pattern
=
'"dag_run_id":"([^"]+)"'
if
[[
$headers
=
~
$pattern
]]
;
then
dag_run_id
=
"
${
BASH_REMATCH
[1]
}
"
echo
"dag_run_id:
$dag_run_id
"
else
# no dag_run_id in json
dag_run_id
=
""
fi
echo
finish photmix.
echo
"dag_run_id:
$dag_run_id
"
>>
/work/extra-attributes.txt
if
[
$exit_code
-eq
0
]
;
then
echo
finish photmix.
# scalebox task add $1
else
echo
"finish photmix, exit_code:
$exit_code
"
fi
rm
-rf
/pipeline/input/
*
/pipeline/output/
*
exit
$exit_code
exit
$exit_code
L1/dockerfiles/csst-msc-l1-mbi/run.sh
View file @
ca9f6ed1
...
@@ -33,9 +33,11 @@ else
...
@@ -33,9 +33,11 @@ else
dag_run_id
=
""
dag_run_id
=
""
fi
fi
echo
"dag_run_id:
$dag_run_id
"
>>
/work/extra-attributes.txt
if
[
$exit_code
-eq
0
]
;
then
if
[
$exit_code
-eq
0
]
;
then
echo
"finish mbi, start sink-job."
echo
"finish mbi, start sink-job."
scalebox task add
--header
dag_run_id
=
${
dag_run_id
}
--upsert
${
message
}
scalebox task add
--header
dag_run_id
=
${
dag_run_id
}
--header
repeatable
=
yes
--upsert
${
message
}
# scalebox task add $1
# scalebox task add $1
else
else
echo
"finish mbi, exit_code:
$exit_code
"
echo
"finish mbi, exit_code:
$exit_code
"
...
...
L1/dockerfiles/csst-msc-l1-qc0/run.sh
View file @
ca9f6ed1
...
@@ -34,9 +34,10 @@ else
...
@@ -34,9 +34,10 @@ else
dag_run_id
=
""
dag_run_id
=
""
fi
fi
if
[
$exit_code
-eq
0
]
;
then
echo
"dag_run_id:
$dag_run_id
"
>>
/work/extra-attributes.txt
scalebox task add
--header
dag_run_id
=
${
dag_run_id
}
--upsert
${
message
}
if
[
$exit_code
-eq
0
]
;
then
scalebox task add
--header
dag_run_id
=
${
dag_run_id
}
--header
repeatable
=
yes
--upsert
${
message
}
echo
"finish qc0, start sink-job."
echo
"finish qc0, start sink-job."
else
else
echo
"finish qc0, exit_code:
$exit_code
"
echo
"finish qc0, exit_code:
$exit_code
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment