Skip to content

Commit

Permalink
Rename
Browse files Browse the repository at this point in the history
  • Loading branch information
cjao committed May 24, 2024
1 parent 0357acc commit d683fc7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions covalent/_dispatcher_plugins/local.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
dispatch_cache_dir.mkdir(parents=True, exist_ok=True)


API_ENTRYPOINT = os.getenv("COVALENT_DISPATCH_API_ENTRYPOINT", "/api/v2/dispatches")
API_BASE = os.getenv("COVALENT_DISPATCH_API_BASE", "/api/v2/dispatches")


def get_redispatch_request_body_v2(
Expand Down Expand Up @@ -580,10 +580,10 @@ def register_manifest(
dispatcher_addr = format_server_url()

stripped = strip_local_uris(manifest) if push_assets else manifest
endpoint = API_ENTRYPOINT
endpoint = API_BASE

if parent_dispatch_id:
endpoint = f"{API_ENTRYPOINT}/{parent_dispatch_id}/sublattices"
endpoint = f"{API_BASE}/{parent_dispatch_id}/sublattices"

r = APIClient(dispatcher_addr).post(endpoint, data=stripped.model_dump_json())
r.raise_for_status()
Expand Down

0 comments on commit d683fc7

Please sign in to comment.