Andrew
08/04/2023, 4:14 AMMarceloChavezReinoso
08/05/2023, 4:21 PMLior Barak
08/07/2023, 9:20 AMcreate Pod prefect-server-postgresql-0 in StatefulSet prefect-server-postgresql failed error: Internal error occurred: failed calling webhook "<http://namespace.sidecar-injector.istio.io|namespace.sidecar-injector.istio.io>": failed to call webhook: Post "<https://istiod.istio-system.svc:443/inject?timeout=10s>": service "istiod" not found
none of the pods are up and they all display this message
is this a prerequisite for installing prefect-server on a cluster?
thanks
(link to deployment charts: https://github.com/PrefectHQ/prefect-helm)Keith Smith
08/08/2023, 9:12 PMAdam Harper
08/08/2023, 10:39 PMLearn Data Analysis
08/10/2023, 12:02 AMNimesh Kumar
08/10/2023, 1:27 PMKhari Gardner
08/10/2023, 8:26 PMLior Barak
08/16/2023, 3:07 PMLior Barak
08/16/2023, 3:31 PMJan
08/20/2023, 5:34 PMJan
08/20/2023, 5:34 PMJan
08/20/2023, 5:35 PMJan
08/20/2023, 5:35 PMJan
08/20/2023, 5:35 PMJan
08/20/2023, 5:36 PMJan
08/20/2023, 5:37 PMNimesh Kumar
08/22/2023, 4:58 AMBrian Newman
08/23/2023, 1:51 PMprefect.yaml
to deploy flows?
2. Has anyone used Azure DevOps Repos to store your Prefect flow code? If yes, could you share any resources or best practices you've come across? Currently using Azure Blob Storage.
Thanks in advance!Ofir
08/23/2023, 8:54 PMKeith Smith
08/23/2023, 8:54 PMfrom prefect import flow
from prefect.filesystems import Azure
az_block = Azure.load("azure-blob-block")
az_block.get_directory()
@flow(log_prints=True)
def hi():
print("It worked!!")
Niccolò Randazzini
08/28/2023, 10:08 AMversion: "3.3"
services:
database:
image: postgres:15.2-alpine
ports:
- 5432:5432
volumes:
- ./postgres:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD=postgres
- POSTGRES_USER=postgres
- POSTGRES_DB=prefect
server:
image: prefecthq/prefect:2.11.5-python3.11
restart: always
volumes:
- ./prefect:/root/.prefect
entrypoint: ["/opt/prefect/entrypoint.sh", "prefect", "server", "start"]
environment:
# If you want to access Prefect Server from anywhere other than the Docker host machine, you will need to change
# PREFECT_UI_URL to match the external hostname/IP used to load the UI in your web browser.
- PREFECT_UI_URL=<http://127.0.0.1:4200/api>
- PREFECT_API_URL=<http://127.0.0.1:4200/api>
- PREFECT_SERVER_API_HOST=0.0.0.0
- PREFECT_API_DATABASE_CONNECTION_URL=<postgresql+asyncpg://postgres:postgres@database:5432/prefect>
# Uncomment the following line if you want to use the 'S3 Bucket' storage block instead of the older 'S3' storage
# - EXTRA_PIP_PACKAGES=prefect-aws
ports:
- 4200:4200
depends_on:
- database
, but I always get this error:
prefect-docker_server_1 exited with code 1
server_1 | Traceback (most recent call last):
server_1 | File "/usr/local/lib/python3.11/site-packages/prefect/cli/_utilities.py", line 41, in wrapper
server_1 | return fn(*args, **kwargs)
server_1 | ^^^^^^^^^^^^^^^^^^^
server_1 | File "/usr/local/lib/python3.11/site-packages/prefect/utilities/asyncutils.py", line 225, in coroutine_wrapper
server_1 | global_thread_portal = get_global_loop()
server_1 | ^^^^^^^^^^^^^^^^^
server_1 | File "/usr/local/lib/python3.11/site-packages/prefect/_internal/concurrency/threads.py", line 251, in get_global_loop
server_1 | GLOBAL_LOOP.start()
server_1 | File "/usr/local/lib/python3.11/site-packages/prefect/_internal/concurrency/threads.py", line 148, in start
server_1 | self.thread.start()
server_1 | File "/usr/local/lib/python3.11/threading.py", line 957, in start
server_1 | _start_new_thread(self._bootstrap, ())
server_1 | RuntimeError: can't start new thread
server_1 | An exception occurred.
Alex S.
08/28/2023, 8:07 PMsup
08/29/2023, 5:12 AMsqlboi
08/29/2023, 9:30 PMroot@3032594fbf4c:/opt/app/initial_test# python3 hello.py
21:18:58.862 | INFO | prefect.engine - Created flow run 'impressive-shrimp' for flow 'hello-world'
21:18:58.864 | INFO | Flow run 'impressive-shrimp' - View at <http://myapp.com/prefect/flow-runs/flow-run/6e4ca6b7-3873-4ca0-a36b-2083992a77ad>
hello world
21:18:59.004 | INFO | Flow run 'impressive-shrimp' - Finished in state Completed()
root@3032594fbf4c:/opt/app/initial_test# python3 hello.py
21:21:11.399 | INFO | prefect.engine - Created flow run 'victorious-raptor' for flow 'hello-world'
21:21:11.401 | INFO | Flow run 'victorious-raptor' - View at <http://myapp.com/prefect/flow-runs/flow-run/9406a029-1952-421f-ac86-409bf2df944c>
hello world
21:21:11.545 | INFO | Flow run 'victorious-raptor' - Finished in state Completed()
but none of this shows up in the actual webapp...
when i try to visit the above it shows me 404.
also i dont see any output from the server - so it's almost like prefect is running the job, but doesn't communicate it with the actual server...
prefect config set PREFECT_SERVER_API_HOST="0.0.0.0"
prefect config set PREFECT_UI_API_URL="<http://myapp.com/prefect/api>"
prefect config set PREFECT_UI_URL="<http://myapp.com/prefect>"
prefect config set PREFECT_API_DATABASE_CONNECTION_URL="sqlite+aiosqlite:////opt/app/prefect.db"
Vinicius Gambi
08/30/2023, 5:04 PMPanda
08/30/2023, 10:30 PMOscar Montanes
08/30/2023, 10:51 PMTraceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.10/bin/prefect", line 5, in <module>
from prefect.cli import app
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/prefect/_init_.py", line 45, in <module>
from prefect.engine import pause_flow_run, resume_flow_run
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/prefect/engine.py", line 98, in <module>
from anyio import start_blocking_portal
ImportError: cannot import name 'start_blocking_portal' from 'anyio' (/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/anyio/_init_.py)
Stampeder
08/31/2023, 3:10 PMStampeder
08/31/2023, 3:12 PM