Skip to content

Commit

Permalink
update product_slugs endpoint in second location
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffsuperglide committed Dec 9, 2024
1 parent 4935acb commit bfc35d1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions async_geoprocess/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def start_worker():
while True:
# check for updated product mapping each hour
if (time.time() - start) > 3600:
cumulus_api.endpoint = "product_slugs"
cumulus_api.endpoint = "api/product_slugs"
resp = asyncio.run(cumulus_api.get_(cumulus_api.url))
PRODUCT_MAP = resp.json()
start = time.time()
Expand Down Expand Up @@ -143,7 +143,6 @@ def start_worker():
shutil.rmtree(dst.name, ignore_errors=True)
dst = None
message.delete()
logger.debug(f"Handle Message Time: {perf_time} (sec)")


if __name__ == "__main__":
Expand Down

0 comments on commit bfc35d1

Please sign in to comment.