Charles Liu
09/06/2024, 7:03 PMJake Kaplan
09/06/2024, 7:05 PMprefect.flow_runs
logger indicates that the modal container at least began to run your flow, but might have crashed while trying to download your code?Charles Liu
09/06/2024, 7:10 PMbackfill_comppany_table_aggregated_deployment = backfill_company_table_aggregated.to_deployment(
name="backfill-company-table-aggregated",
tags=["companies"],
cron="0 1 * * *",
description="Backfill the company table in both DB and Vespa. This flow calls the add-companies-to-vespa flow.",
work_pool_name="default-modal-pool",
)
...
serve(
backfill_comppany_table_aggregated_deployment, ...)
Jake Kaplan
09/06/2024, 7:15 PMJake Kaplan
09/06/2024, 7:16 PMCharles Liu
09/06/2024, 7:17 PMJake Kaplan
09/06/2024, 7:22 PMCharles Liu
09/06/2024, 7:27 PMCharles Liu
09/06/2024, 7:31 PMCharles Liu
09/06/2024, 8:38 PMbackfill_company_table_aggregated.deploy(
name="backfill-company-table-aggregated",
tags=["companies"],
cron="0 8 * * *",
description="Backfill the company table in both DB and Vespa. This flow calls the add-companies-to-vespa flow.",
work_pool_name="default-modal-pool",
image="prefect:dev",
# push=False,
)
add_companies_to_vespa.deploy(
name="add-companies-to-vespa",
tags=["companies", "vespa"],
cron="0 8 * * *",
description="Add companies to Vespa.",
work_pool_name="default-modal-pool",
image="prefect:dev",
# push=False,
)
Traceback (most recent call last):
File "/Users/charlesliu/Developer/endex/backend/src/endex/prefect/deploy.py", line 12, in <module>
backfill_company_table_aggregated.deploy(
File "/Users/charlesliu/Developer/endex/.venv/lib/python3.12/site-packages/prefect/utilities/asyncutils.py", line 392, in coroutine_wrapper
return run_coro_as_sync(ctx_call())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/charlesliu/Developer/endex/.venv/lib/python3.12/site-packages/prefect/utilities/asyncutils.py", line 243, in run_coro_as_sync
return call.result()
^^^^^^^^^^^^^
File "/Users/charlesliu/Developer/endex/.venv/lib/python3.12/site-packages/prefect/_internal/concurrency/calls.py", line 312, in result
return self.future.result(timeout=timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/charlesliu/Developer/endex/.venv/lib/python3.12/site-packages/prefect/_internal/concurrency/calls.py", line 182, in result
return self.__get_result()
^^^^^^^^^^^^^^^^^^^
File "/Users/charlesliu/.pyenv/versions/3.12.4/lib/python3.12/concurrent/futures/_base.py", line 401, in __get_result
raise self._exception
File "/Users/charlesliu/Developer/endex/.venv/lib/python3.12/site-packages/prefect/_internal/concurrency/calls.py", line 383, in _run_async
result = await coro
^^^^^^^^^^
File "/Users/charlesliu/Developer/endex/.venv/lib/python3.12/site-packages/prefect/utilities/asyncutils.py", line 225, in coroutine_wrapper
return await task
^^^^^^^^^^
File "/Users/charlesliu/Developer/endex/.venv/lib/python3.12/site-packages/prefect/utilities/asyncutils.py", line 382, in ctx_call
result = await async_fn(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/charlesliu/Developer/endex/.venv/lib/python3.12/site-packages/prefect/flows.py", line 1199, in deploy
deployment_ids = await deploy(
^^^^^^^^^^^^^
File "/Users/charlesliu/Developer/endex/.venv/lib/python3.12/site-packages/prefect/utilities/asyncutils.py", line 382, in ctx_call
result = await async_fn(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/charlesliu/Developer/endex/.venv/lib/python3.12/site-packages/prefect/deployments/runner.py", line 879, in deploy
image.build()
File "/Users/charlesliu/Developer/endex/.venv/lib/python3.12/site-packages/prefect/docker/docker_image.py", line 70, in build
build_image(**build_kwargs)
File "/Users/charlesliu/.pyenv/versions/3.12.4/lib/python3.12/contextlib.py", line 81, in inner
return func(*args, **kwds)
^^^^^^^^^^^^^^^^^^^
File "/Users/charlesliu/Developer/endex/.venv/lib/python3.12/site-packages/prefect/utilities/dockerutils.py", line 193, in build_image
raise BuildError(event["error"])
prefect.utilities.dockerutils.BuildError: Get "<https://registry-1.docker.io/v2/>": dialing registry-1.docker.io:443 container via direct connection because has no HTTPS proxy: connecting to 34.226.69.105:443: dial tcp 34.226.69.105:443: connect: network is unreachable
Do you recognize this?Pratham
09/06/2024, 8:56 PMdeploy
that'll build the appropriate image for modal?Jake Kaplan
09/06/2024, 9:52 PMCharles Liu
09/06/2024, 11:52 PMbackfill_company_table_aggregated.deploy(
name="backfill-company-table-aggregated",
tags=["companies"],
cron="0 8 * * *",
description="Backfill the company table in both DB and Vespa. This flow calls the add-companies-to-vespa flow.",
work_pool_name="default-modal-pool",
image=DockerImage(
name="charlesendex/endex", tag="dev", dockerfile="auto", timeout=1200
),
# push=False,
)
add_companies_to_vespa.deploy(
name="add-companies-to-vespa",
tags=["companies", "vespa"],
cron="0 8 * * *",
description="Add companies to Vespa.",
work_pool_name="default-modal-pool",
image=DockerImage(
name="charlesendex/endex", tag="dev", dockerfile="auto", timeout=1200
),
# push=False,
)
I'm getting a configuration issue with Modal now