Skip to content

Commit

Permalink
EJR is still optional (C-SCALE) #632
Browse files Browse the repository at this point in the history
  • Loading branch information
bossie committed Jan 9, 2024
1 parent e7cbce5 commit e0a9743
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion openeogeotrellis/deploy/kube.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def on_started():

from openeogeotrellis.backend import GeoPySparkBackendImplementation

backend_implementation = GeoPySparkBackendImplementation()
backend_implementation = GeoPySparkBackendImplementation(use_job_registry=bool(get_backend_config().ejr_api))
app = build_app(backend_implementation=backend_implementation)

#https://github.com/Open-EO/openeo-python-driver/issues/242
Expand Down
3 changes: 2 additions & 1 deletion openeogeotrellis/job_tracker_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,8 @@ def main(self, *, args: Optional[List[str]] = None):
requests_session = requests_with_retry(total=3, backoff_factor=2)

# Elastic Job Registry (EJR)
elastic_job_registry = get_elastic_job_registry(requests_session)
elastic_job_registry = (get_elastic_job_registry(requests_session) if get_backend_config().ejr_api
else None)

# YARN or Kubernetes?
app_cluster = args.app_cluster
Expand Down

0 comments on commit e0a9743

Please sign in to comment.