pull/516/head
Andrey Dolgolev 2022-01-17 14:56:47 +02:00
rodzic b73dfe77fc
commit 6b8c61dfe2
2 zmienionych plików z 5 dodań i 5 usunięć

Wyświetl plik

@ -16,7 +16,7 @@ from ..reporter import reporter
from ..settings import (
BUGOUT_REQUEST_TIMEOUT_SECONDS,
MOONSTREAM_APPLICATION_ID,
MOONSTREAM_CRAWLERS_INTERNAL,
MOONSTREAM_CRAWLERS_SERVER_URL,
MOONSTREAM_S3_SMARTCONTRACTS_ABI_BUCKET,
MOONSTREAM_S3_SMARTCONTRACTS_ABI_PREFIX,
)
@ -451,7 +451,7 @@ async def update_dashbord_data_handler(
token = request.state.token
responce = requests.post(
f"{MOONSTREAM_CRAWLERS_INTERNAL}/jobs/stats_update",
f"{MOONSTREAM_CRAWLERS_SERVER_URL}/jobs/stats_update",
json={
"dashboard_id": dashboard_id,
"timescales": updatestats.timescales,

Wyświetl plik

@ -66,10 +66,10 @@ MOONSTREAM_S3_SMARTCONTRACTS_ABI_PREFIX = (
MOONSTREAM_S3_SMARTCONTRACTS_ABI_PREFIX.rstrip("/")
)
MOONSTREAM_CRAWLERS_INTERNAL = os.environ.get("MOONSTREAM_CRAWLERS_INTERNAL")
if MOONSTREAM_CRAWLERS_INTERNAL is None:
MOONSTREAM_CRAWLERS_SERVER_URL = os.environ.get("MOONSTREAM_CRAWLERS_INTERNAL")
if MOONSTREAM_CRAWLERS_SERVER_URL is None:
raise ValueError("MOONSTREAM_CRAWLERS_INTERNAL environment variable must be set")
MOONSTREAM_CRAWLERS_INTERNAL = MOONSTREAM_CRAWLERS_INTERNAL.rstrip("/")
MOONSTREAM_CRAWLERS_SERVER_URL = MOONSTREAM_CRAWLERS_SERVER_URL.rstrip("/")
MOONSTREAM_MOONWORM_TASKS_JOURNAL = os.environ.get(
"MOONSTREAM_MOONWORM_TASKS_JOURNAL", ""