Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
LOFAR
Manage
Activity
Members
Labels
Plan
Issues
Wiki
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RadioObservatory
LOFAR
Commits
21276555
Commit
21276555
authored
1 year ago
by
Jorrit Schaap
Browse files
Options
Downloads
Patches
Plain Diff
TMSS-2836
: skip idols. skip lofar2 units
parent
71b30bdc
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
SAS/TMSS/backend/services/lofar2_siblings/tmss_lofar2_sibling_service
+12
-0
12 additions, 0 deletions
...kend/services/lofar2_siblings/tmss_lofar2_sibling_service
with
12 additions
and
0 deletions
SAS/TMSS/backend/services/lofar2_siblings/tmss_lofar2_sibling_service
+
12
−
0
View file @
21276555
...
...
@@ -41,6 +41,18 @@ class TMSSLofar2SiblingEventMessageHandler(TMSSEventMessageHandler):
self
.
tmss_client
.
close
()
def
onSchedulingUnitBlueprintCreated
(
self
,
id
:
int
):
scheduling_unit
=
self
.
tmss_client
.
get_schedulingunit_blueprint
(
id
,
slim
=
True
)
if
scheduling_unit
[
'
project
'
].
lower
().
strip
()
==
'
idols
'
:
logger
.
info
(
"
skipping creation of lofar2 sibling for idols unit id=%s
"
,
id
)
return
stations
=
self
.
tmss_client
.
get_stations
()
lofar2_stations
=
set
([
station
for
station
,
props
in
stations
.
items
()
if
props
[
'
version
'
]
==
2
])
if
set
(
scheduling_unit
[
'
specified_stations
'
])
==
lofar2_stations
:
logger
.
info
(
"
skipping creation of lofar2 sibling for unit id=%s which is already using lofar2 stations
"
,
id
)
return
lofar2_unit
=
self
.
tmss_client
.
create_lofar2_sibling_scheduling_unit
(
id
)
if
lofar2_unit
is
not
None
:
logger
.
info
(
"
created lofar2 unit: %s
"
,
lofar2_unit
[
'
url
'
])
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment