Prasanth Kothuri
02/20/2023, 9:10 AMroot@dataeng-prefect:~# prefect version
Version: 2.7.12
API version: 0.8.4
Python version: 3.8.16
Git commit: 524c25cd
Built: Mon, Feb 6, 2023 4:31 PM
OS/Arch: linux/x86_64
Profile: default
Server type: <client error>
root@dataeng-prefect:~# prefect config set PREFECT_API_DATABASE_CONNECTION_URL="<postgresql+asyncpg://postgres:yourTopSecretPassword@localhost:5432/prefect>"
Unknown setting name 'PREFECT_API_DATABASE_CONNECTION_URL'.
eli yosef
02/20/2023, 9:55 AMMike Reay
02/20/2023, 9:55 AMNaila Chennit
02/20/2023, 9:56 AM2.7.5
. Any idea ?Andreas Nord
02/20/2023, 10:25 AMKelvin DeCosta
02/20/2023, 10:26 AMPrasanth Kothuri
02/20/2023, 10:43 AMroot@dataeng-prefect:~# prefect version
Version: 2.8.2
API version: 0.8.4
Python version: 3.8.16
Git commit: afbed19d
Built: Fri, Feb 17, 2023 10:02 AM
OS/Arch: linux/x86_64
Profile: default
Server type: server
set the API and UI to external IP, start the server but no luck
root@dataeng-prefect:~# prefect config set PREFECT_API_URL=<http://172.27.24.162:4200/api>
Set 'PREFECT_API_URL' to '<http://172.27.24.162:4200/api>'.
Updated profile 'default'.
root@dataeng-prefect:~# prefect config set PREFECT_UI_API_URL=<http://172.27.24.162:4200>
Set 'PREFECT_UI_API_URL' to '<http://172.27.24.162:4200>'.
Updated profile 'default'.
root@dataeng-prefect:~# prefect server start
___ ___ ___ ___ ___ ___ _____
| _ \ _ \ __| __| __/ __|_ _|
| _/ / _|| _|| _| (__ | |
|_| |_|_\___|_| |___\___| |_|
Configure Prefect to communicate with the server with:
prefect config set PREFECT_API_URL=<http://127.0.0.1:4200/api>
View the API reference documentation at <http://127.0.0.1:4200/docs>
Check out the dashboard at <http://127.0.0.1:4200>
Andreas Nord
02/20/2023, 12:53 PMKristian Andersen Hole
02/20/2023, 1:41 PMprefect-aws
pre-installed exist?
Thank you πSteph Clacksman
02/20/2023, 3:26 PMdherincx
02/20/2023, 5:11 PMflow_id
property that we were accessing the following way using prefect.context.get("flow_id")
. In Prefect 2, I am looking for the equivalent property in the context object, but have only managed to find a flow_run_id
. Am I missing something here?Prasanth Kothuri
02/20/2023, 5:14 PMs3 = boto3.resource('s3',
aws_access_key_id=access_key,
aws_secret_access_key=secret_key,
endpoint_url=endpoint_url)
Sampath
02/20/2023, 6:08 PMRajvir Jhawar
02/20/2023, 6:56 PMDownloading flow code from storage at ''
into all my logs.
Is there any way to disable it? It gets added multiple times and is not helpful, the system never use to do this in the past.Aaron Gonzalez
02/20/2023, 7:04 PMimport asyncio
import random
import time
from prefect import flow, task, get_run_logger
async def async_func():
if random.random() > 0.3:
time.sleep(1)
await asyncio.sleep(random.randint(1, 5))
return 1
@task
async def my_task():
result = await async_func()
return result
@flow()
async def my_flow():
tasks = []
for _ in range(500):
t = my_task()
tasks.append(t)
await asyncio.gather(*tasks, return_exceptions=True)
if __name__ == "__main__":
asyncio.run(my_flow())
How can one create a deployment for this? Would you still be able to use Deployment.build_from_flow()
with this? And if so, would this still work with deployment parameters?Volker L
02/20/2023, 8:29 PMprefect server start
)on a oracle free tier.
I tried to connect to the server, but I figured out, that I first had to add some ingress rules in my oracle VNC settings and open my firewall.
IΒ΄ve s opend 80 and 4200. I can connect to a running apache server (http://myip:80), but I can not reach the prefect UI (http://myip:4200). Do I have to open some other ports too?Thet Naing
02/20/2023, 9:22 PMTomΓ‘s Emilio Silva Ebensperger
02/20/2023, 9:53 PMJason Motley
02/20/2023, 10:59 PMTomΓ‘s Emilio Silva Ebensperger
02/21/2023, 12:14 AMMenekse Kuyu
02/21/2023, 11:57 AMData integrity conflict
when I delete a running flow run. How can I solve this? I am using prefect 2.7.12
BTW it works when using a sqllite db, but fails in postgresql.
The error message is:
<class 'asyncpg.exceptions.ForeignKeyViolationError'>: update or delete on table "task_run" violates foreign key constraint "fk_artifact__task_run_id__task_run" on table "artifact"
DETAIL: Key (id)=(51c7df11-9d79-4370-ad77-ba98d8a7989f) is still referenced from table "artifact".
Haotian Li
02/21/2023, 1:02 PMRavi
02/21/2023, 1:33 PMTolga Karahan
02/21/2023, 3:28 PMPrasanth Kothuri
02/21/2023, 6:05 PM+ echo 'Non-spark-on-k8s command provided, proceeding in pass-through mode...'
Non-spark-on-k8s command provided, proceeding in pass-through mode...
+ CMD=("$@")
+ exec /usr/bin/tini -s -- python -m prefect.engine
[FATAL tini (14)] exec python failed: No such file or directory
looks like the image should have some mandatory software ? do I need to install prefect inside this image? are the pre-requisites documented anywhere ?Daniel Reiff
02/21/2023, 6:07 PMRobert Bastian
02/21/2023, 6:24 PMEthienne Marcelin
02/21/2023, 6:43 PMNick Coy
02/21/2023, 7:03 PM19:01:29.664 | INFO | prefect.agent - Found 1 flow runs awaiting cancellation.
19:01:29.665 | ERROR | prefect.agent - Flow run '63ee09b8-7bc9-4df9-a690-e1d6f77fbf98' does not have an infrastructure pid attached. Cancellation cannot be guaranteed.
Im not sure whats going on with the agentChristine
02/21/2023, 8:40 PMGitHub Actions: Plan of Action
The βGetting Startedβ GitHub action does the following:
1. It creates an Artifact Registry repository if one doesnβt exist yet.
2. It builds a Docker image and pushes it to that Artifact Registry repository based on theDockerfile