Skip to content

Commit

Permalink
Merge pull request #841 from haozturk/828-fix
Browse files Browse the repository at this point in the history
Update siteAvailability script according to the new rucio status
  • Loading branch information
dynamic-entropy authored Sep 18, 2024
2 parents 46a0d28 + 84c9b7e commit 0193225
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion docker/rucio_client/scripts/availability_lucene.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@
"metadata.kafka_timestamp",
"data.name",
"data.status",
"data.prod_status"
"data.prod_status",
"data.rucio_status"
]
},
"size": 10000,
Expand Down
4 changes: 2 additions & 2 deletions docker/rucio_client/scripts/setSiteAvailability
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ for site in sites:
continue # Until we get good metrics for Tier3s
if rse in available_map:
continue
ssb_status = site.get('status', None)
if not ssb_status or ssb_status != 'enabled':
rucio_status = site.get('rucio_status', None)
if not rucio_status or rucio_status not in ['dependable', 'enabled']:
available_map[rse] = False
else:
available_map[rse] = True
Expand Down

0 comments on commit 0193225

Please sign in to comment.