Skip to content

Commit

Permalink
Use no proxy for consdb access
Browse files Browse the repository at this point in the history
  • Loading branch information
Vebop committed Nov 25, 2024
1 parent de54a07 commit 7ff2335
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions python/lsst/ts/logging_and_reporting/consolidated_database.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>.


import os

import matplotlib.pyplot as plt

try:
Expand All @@ -40,6 +42,8 @@ def __init__(self, url, day_obs):
self.day_obs = day_obs
self.day_obs_int = int(day_obs.replace("-", ""))
self.client = ConsDbClient(url) if have_consdb else None
os.environ["no_proxy"] += ",.consdb"
# Something about token from consdb usage page needs to happen

def query_visit(self, instrument: str, type: str = "visit1"):
"""Query visit1 and visit1_quicklook tables and join the data on
Expand Down

0 comments on commit 7ff2335

Please sign in to comment.