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
554f808c
Commit
554f808c
authored
May 04, 2025
by
BO ZHANG
🏀
Browse files
fix bug in DFS
parent
3a4aee0b
Changes
1
Hide whitespace changes
Inline
Side-by-side
csst_dag/dfs/__init__.py
View file @
554f808c
...
@@ -60,13 +60,20 @@ class DFS:
...
@@ -60,13 +60,20 @@ class DFS:
print
(
"Multiple DFS locations are available, please specify one"
)
print
(
"Multiple DFS locations are available, please specify one"
)
raise
ValueError
(
"Multiple DFS locations are available"
)
raise
ValueError
(
"Multiple DFS locations are available"
)
else
:
else
:
self
.
location
=
status_table
[
"location"
][
status_table
[
"status"
]][
0
]
if
location
is
None
:
# set DFS automatically
assert
(
status_table
[
"status"
].
sum
()
==
1
),
"Multiple DFS locations are available"
location
=
status_table
[
"location"
][
status_table
[
"status"
]][
0
]
print
(
f
"Using DFS location:
{
location
}
"
)
self
.
location
=
location
self
.
config
=
CONFIG
[
self
.
location
]
self
.
config
=
CONFIG
[
self
.
location
]
print
(
f
"Using DFS location:
{
location
}
"
)
print
(
f
"Using DFS location:
{
location
}
"
)
for
k
,
v
in
CONFIG
[
loc
][
"dfs"
].
items
():
for
k
,
v
in
CONFIG
[
self
.
location
][
"dfs"
].
items
():
os
.
environ
.
setdefault
(
k
,
str
(
v
))
os
.
environ
.
setdefault
(
k
,
str
(
v
))
# print("Setting redis config:")
# print("Setting redis config:")
self
.
redis
=
Redis
(
location
=
loc
)
self
.
redis
=
Redis
(
location
=
self
.
location
)
class
Redis
(
redis
.
Redis
):
class
Redis
(
redis
.
Redis
):
...
...
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