Skip to content

Commit

Permalink
log job tracker errors while interacting with Vault and Keycloak
Browse files Browse the repository at this point in the history
  • Loading branch information
bossie committed Jan 30, 2023
1 parent ad48991 commit 325f157
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions openeogeotrellis/job_tracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -416,11 +416,11 @@ def main():
help="The full path to the file that contains the keytab for the principal")
args = parser.parse_args()

# the assumption here is that a token lifetime of 5 minutes is long enough for a JobTracker run
etl_api_access_token = None if ConfigParams().is_kube_deploy else get_etl_api_access_token(args.principal,
args.keytab)

try:
# the assumption here is that a token lifetime of 5 minutes is long enough for a JobTracker run
etl_api_access_token = None if ConfigParams().is_kube_deploy else get_etl_api_access_token(args.principal,
args.keytab)

with EtlApi(ConfigParams().etl_api) as etl_api:
job_tracker = JobTracker(ZkJobRegistry, args.principal, args.keytab,
etl_api=etl_api, etl_api_access_token=etl_api_access_token)
Expand Down

0 comments on commit 325f157

Please sign in to comment.