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
31d0ec19
"git@csst-tb.bao.ac.cn:csst-cicd/csst-dag.git" did not exist on "a9b7d5ca0f2e6afa74ed25ded8c0943caf52f122"
Commit
31d0ec19
authored
Jun 14, 2025
by
BO ZHANG
🏀
Browse files
tweaks
parent
03329a72
Changes
2
Hide whitespace changes
Inline
Side-by-side
csst_dag/cli/msc.py
View file @
31d0ec19
...
@@ -65,7 +65,7 @@ for obs_type, dags in DAG_MAP.items():
...
@@ -65,7 +65,7 @@ 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
}
` -> "
,
end
=
""
)
dag
=
CsstDAGs
.
get
_dag
(
dag
=
this_dag
)
dag
=
CsstDAGs
.
get
(
this_dag
)
msgs
=
dag
.
schedule
(
msgs
=
dag
.
schedule
(
batch_id
=
args
.
batch_id
,
batch_id
=
args
.
batch_id
,
priority
=
args
.
priority
,
priority
=
args
.
priority
,
...
...
csst_dag/dag/l1.py
View file @
31d0ec19
...
@@ -90,12 +90,6 @@ DAG_PARAMS = {
...
@@ -90,12 +90,6 @@ DAG_PARAMS = {
},
},
}
}
SCHEDULE_KWARGS
=
{
"priority"
,
# "queue",
# "execution_date",
}
class
GeneralL1DAG
(
BaseDAG
):
class
GeneralL1DAG
(
BaseDAG
):
...
@@ -107,15 +101,14 @@ class GeneralL1DAG(BaseDAG):
...
@@ -107,15 +101,14 @@ class GeneralL1DAG(BaseDAG):
def
schedule
(
def
schedule
(
self
,
self
,
batch_id
:
str
|
None
=
"-"
,
batch_id
:
str
|
None
=
"-"
,
priority
:
int
=
1
,
dataset
:
str
=
"csst-msc-c9-25sqdeg-v3"
,
dataset
:
str
=
"csst-msc-c9-25sqdeg-v3"
,
obs_type
:
str
=
"WIDE"
,
obs_type
:
str
=
"WIDE"
,
obs_group
=
"W1"
,
obs_group
=
"W1"
,
initial_prc_status
:
int
=
-
1024
,
# level0 prc_status level1
initial_prc_status
:
int
=
-
1024
,
# level0 prc_status level1
final_prc_status
:
int
=
-
2
,
final_prc_status
:
int
=
-
2
,
demo
=
True
,
demo
=
True
,
**
kwargs
,
):
):
assert
kwargs
.
keys
()
<=
SCHEDULE_KWARGS
,
f
"Unknown kwargs:
{
kwargs
.
keys
()
}
"
# no need to query plan
# no need to query plan
# plan.write_file(local_path="plan.json")
# plan.write_file(local_path="plan.json")
# plan.find(
# plan.find(
...
@@ -129,7 +122,7 @@ class GeneralL1DAG(BaseDAG):
...
@@ -129,7 +122,7 @@ class GeneralL1DAG(BaseDAG):
dag_group_run
=
self
.
gen_dag_group_run
(
dag_group_run
=
self
.
gen_dag_group_run
(
dag_group
=
self
.
dag_group
,
dag_group
=
self
.
dag_group
,
batch_id
=
batch_id
,
batch_id
=
batch_id
,
priority
=
kwargs
.
get
(
"
priority
"
,
1
)
,
priority
=
priority
,
)
)
if
demo
:
if
demo
:
print
(
json
.
dumps
(
dag_group_run
,
indent
=
4
))
print
(
json
.
dumps
(
dag_group_run
,
indent
=
4
))
...
...
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