Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
csst-cicd
csst-dag
Commits
3f5bef29
Commit
3f5bef29
authored
Jun 14, 2025
by
BO ZHANG
🏀
Browse files
tweaks
parent
b2abedfc
Changes
2
Show whitespace changes
Inline
Side-by-side
csst_dag/cli/msc.py
View file @
3f5bef29
...
@@ -64,9 +64,9 @@ if args.obs_type:
...
@@ -64,9 +64,9 @@ if args.obs_type:
for
obs_type
,
dags
in
DAG_MAP
.
items
():
for
obs_type
,
dags
in
DAG_MAP
.
items
():
print
(
f
"* Processing `
{
obs_type
}
`"
)
print
(
f
"* Processing `
{
obs_type
}
`"
)
for
this_dag
in
dags
:
for
this_dag
in
dags
:
print
(
f
" - Scheduling `
{
this_dag
}
`
-> "
,
end
=
"
"
)
print
(
f
" - Scheduling `
{
this_dag
}
`"
)
dag
=
CsstDAGs
().
get
(
this_dag
)
dag
=
CsstDAGs
().
get
(
this_dag
)
msgs
=
dag
.
schedule
(
dag_group_run
,
dag_run_list
=
dag
.
schedule
(
batch_id
=
args
.
batch_id
,
batch_id
=
args
.
batch_id
,
priority
=
args
.
priority
,
priority
=
args
.
priority
,
dataset
=
args
.
dataset
,
dataset
=
args
.
dataset
,
...
@@ -76,4 +76,4 @@ for obs_type, dags in DAG_MAP.items():
...
@@ -76,4 +76,4 @@ for obs_type, dags in DAG_MAP.items():
final_prc_status
=
args
.
final_prc_status
,
final_prc_status
=
args
.
final_prc_status
,
demo
=
args
.
demo
,
demo
=
args
.
demo
,
)
)
print
(
f
"
{
len
(
msgs
)
}
tasks."
)
#
print(f"{len(
dag_run_list
)} tasks.")
csst_dag/dag/l1.py
View file @
3f5bef29
...
@@ -179,6 +179,9 @@ class GeneralL1DAG(BaseDAG):
...
@@ -179,6 +179,9 @@ class GeneralL1DAG(BaseDAG):
if
not
demo
:
if
not
demo
:
# push and update
# push and update
res_push
=
self
.
push_dag_group_run
(
dag_group_run
,
dag_run_list
)
res_push
=
self
.
push_dag_group_run
(
dag_group_run
,
dag_run_list
)
print
(
res_push
)
print
(
f
" *
{
len
(
dag_run_list
)
}
DAG runs ->
{
res_push
}
"
)
assert
res_push
.
success
,
res_push
.
message
assert
res_push
.
success
,
res_push
.
message
else
:
# no push
print
(
f
" *
{
len
(
dag_run_list
)
}
DAG runs."
)
return
dag_group_run
,
dag_run_list
return
dag_group_run
,
dag_run_list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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