-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Common: Correct header to most recent version, sort imports
- Loading branch information
Showing
1 changed file
with
9 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
#!/usr/bin/env python3 | ||
# Copyright 2012-2024 CERN | ||
# Copyright European Organization for Nuclear Research (CERN) since 2012 | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
|
@@ -12,26 +12,22 @@ | |
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
# Authors: | ||
# - Cedric Serfon, <[email protected]>, 2015 | ||
# - Donata Mielaikaite, <[email protected]>, 2020 | ||
# - Eric Vaandering, <[email protected]>, 2020 | ||
# - Maggie Voetberg <[email protected]>, 2024 | ||
|
||
|
||
''' | ||
""" | ||
Probe to check the locked expired rules or datasets with locked rules | ||
''' | ||
""" | ||
|
||
from collections import defaultdict | ||
import datetime | ||
import sys | ||
import traceback | ||
from sqlalchemy import select, and_ | ||
from sqlalchemy.sql import true, null | ||
from collections import defaultdict | ||
|
||
from sqlalchemy import and_, select | ||
from sqlalchemy.sql import null, true | ||
|
||
from rucio.db.sqla import models, session | ||
|
||
from utils.common import PrometheusPusher | ||
|
||
# Exit statuses | ||
|
@@ -114,7 +110,7 @@ if __name__ == '__main__': | |
.labels(rse_expression=rse_expression) | ||
.set(dids)) | ||
|
||
except: | ||
except Exception: | ||
print(traceback.format_exc()) | ||
sys.exit(UNKNOWN) | ||
|
||
|