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
32ffff94
Commit
32ffff94
authored
Apr 23, 2025
by
BO ZHANG
🏀
Browse files
update dag_run_id
parent
503f7508
Changes
1
Hide whitespace changes
Inline
Side-by-side
csst_dag/message.py
View file @
32ffff94
import
json
from
astropy
import
time
from
astropy
import
time
import
numpy
as
np
import
numpy
as
np
import
string
import
string
import
os
def
gen_dag_run_id
(
digits
=
10
):
def
gen_dag_run_id
(
digits
=
6
):
"""
"""
Generate a unique run_id for a dag.
Generate a unique run_id for a dag.
"""
"""
now
=
time
.
Time
.
now
()
now
=
time
.
Time
.
now
()
dag_run_id
=
now
.
iso
[:
10
].
replace
(
"-"
,
"
"
)
dag_run_id
=
now
.
strftime
(
"%Y%m%d-%H%M%S-
"
)
n
=
len
(
string
.
ascii_lowercase
)
n
=
len
(
string
.
ascii_lowercase
)
for
i
in
range
(
digits
):
for
i
in
range
(
digits
):
...
...
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