Matt Delacour
02/16/2023, 6:14 PMHarry Hause
02/16/2023, 7:32 PMTomas Moreno
02/16/2023, 9:50 PMPREFECT__CLOUD__REQUEST_TIMEOUT=60
but don't think it's quite working. does anyone have any experience with situations like this? full stack trace in threadBryan Whiting
02/16/2023, 10:00 PMRikimaru Yamaguchi
02/17/2023, 2:39 AMprefect deployment build
Is it possible to set the cron timezone with this command?Sarhan
02/17/2023, 2:47 AMDownloading flow code from storage at '/deployment/'
Flow could not be retrieved from deployment.
And the traceback ends with (full traceback in thread):
AttributeError: module 'lib' has no attribute 'OpenSSL_add_all_algorithms'
Running the agent locally is perfectly fine so it’s only when deployed to EC2 that I’m getting the error.
I’ve checked a number of things already including referencing this thread from Brian:
• EC2 is able to connect to S3 and download files (used AWS CLI here) as well as run head_object()
(Python - boto3 here)
• Reinstalled s3fs
. My error isn’t quite the same as Brian’s but tried it anyway.
• Changed my versions of pyOpenSSL
and cryptography
following the first answer here.
• made sure path
and entrypoint
are present and correct (side note that my flow is quite deep into my directory)
Some additional notes:
• Deployed using PythonShivan Trivedi
02/17/2023, 4:45 AMLachlan Casey
02/17/2023, 6:09 AMkilled
after running for a while fetching my csv from online? Memory shouldn't be an issue here... very confusedJelle Vegter
02/17/2023, 7:11 AMNikhil Joseph
02/17/2023, 8:56 AMToby Rahloff
02/17/2023, 9:48 AMfrom prefect.orion
import path and is therefore, unfortunately, not backwards compatible 😢Emil B
02/17/2023, 12:28 PMprefect config set PREFECT_API_DATABASE_CONNECTION_URL="sqlite+aiosqlite:///file::memory:?cache=shared&uri=true&check_same_thread=false"
Outputs:
Unknown setting name 'PREFECT_API_DATABASE_CONNECTION_URL'.
What am I missing?kumar
02/17/2023, 12:47 PMTolga Karahan
02/17/2023, 1:42 PMMenekse Kuyu
02/17/2023, 1:51 PMGeorge Kharchenko
02/17/2023, 2:17 PMTask run '0f3019f5-5551-4404-9f88-05274da187d8' received abort during orchestration: This run cannot transition to the RUNNING state from the RUNNING state. Task run is in RUNNING state.
James Gatter
02/17/2023, 3:28 PMVolker L
02/17/2023, 3:35 PMRuntimeError: There is no current event loop in thread 'AnyIO worker thread'.
Inside one of my tasks, I am using asynio and aiohttp to request some data from a RestAPI.James Ashby
02/17/2023, 4:40 PMCarlos Cueto
02/17/2023, 4:44 PMshell_run_command
from prefect-shell
into the new ShellOperation
class, however, I'm always running into the following error when I try to run ANY command. This is using WINDOWS. Examples:
ShellOperation(commands=["echo Hello"]).run()
Kyle D
02/17/2023, 5:42 PMread_logs()
with the python client work for everyone else? The following code used to return flow run logs:
async def get_logs(start_ts, end_ts):
async with get_client() as client:
logs = await client.read_logs(
log_filter=LogFilter(
timestamp={ "after_": start_ts, "before_": end_ts }
),
)
return logs
but if I query anytime after 2023-01-18
for start_ts
it returns en empty array. I have flow runs after that date and I see stuff has been logged when accessing prefect cloud, so it’s strange to me I would see different results from the client vs the cloud UIKelby
02/17/2023, 6:31 PMDockerContainer
block, I see that I can pass in environment variables using the env
argument. Is it possible to point to an env_file
instead? I have some password information that I store in my .env file that I would prefer not to be shown in the UI.Marc Lipoff
02/17/2023, 6:32 PMERROR | Flow run 'jovial-okapi' - Crash detected! Execution was interrupted by an unexpected exception: RuntimeError: dictionary changed size during iteration
scott
02/17/2023, 8:51 PMprefect agent start -q queue1 -q queue2
still work as is after upgrading to prefect v2.8
given the change to worker pools and queues? That is, do you have to specify work pools with v2.8+
? I will use work pools but haven’t put time in yet to sort out what fits our use case best.alex
02/17/2023, 10:37 PM@flow
def demo_flow(x=1):
val = task_1(x)
val = task_2(val)
val = task_3(val)
val = task_4(val)
val = prone_to_fail_task(val)
return val
If expensive_prone_to_fail_task fails, I want to be able to restart my flow and have it retry just prone_to_fail_task
again. What do I need to achieve that? Will adding cache_key_fn=task_input_hash,
to just task_4
be sufficient?Surat Mukker
02/18/2023, 1:03 AM{
"api_url": "<http://orion-datavinci.dev.immersa.io:4200/api>",
"flags": [
"work_pools"
]
}
and https://orion.dev.<domain>/ui-settings
{
"api_url": "<https://orion.dev.immersa.io/api>",
"flags": []
}
FYI /settings
endpoint using both URLs returns the same settings. Have looked at the code in server.py
that handles /ui-settings
and experimental.py
but that does not explain why the response differs for /ui-settings
when going via proxy vs direct ?
Any ideas ?CA Lee
02/18/2023, 4:26 AMSteven Wilber
02/19/2023, 10:17 PMorion
running locally in Kubernetes using K3D.
Setup:
• OS: macOS Ventura 13.2.1
• Docker: Docker Desktop
• K3D: k3d version v5.4.7, k3s version v1.25.6-k3s1 (default)
(the output from k3d --version
)
I'll attach the config files below for:
• K3D Cluster Setup
• Prefect Orion Deployment and NodePort service
Issue:
Since K3D is running K8s inside of a docker container, I need to open a port. I can set up the cluster to have an open port (I've chosen 30001) and then I can set up a NodePort in the cluster that listens externally on 30001 and forwards to the Orion pod on 4200.
If I set the startup parameters for Orion to be the following ...
command: ["prefect", "orion", "start", "--host", "0.0.0.0", "--port", "4200", "--log-level", "DEBUG"]
... then I can connect to the Orion UI using the following URL ...
<http://127.0.0.1:30001>
... and this connects through to Orion and shows me the Flow Runs screen as the default. However, I receive the message ...
Can't connect to Orion API at <http://127.0.0.1:4200/api>. Check that it's accessible from your machine.
... which I guess means that the UI is using AJAX to communicate back to the server, but it can't get to it using port 4200, as it needs to be 30001.
If I set the startup parameters for Orion to be the following (note the change in port) ...
command: ["prefect", "orion", "start", "--host", "0.0.0.0", "--port", "30001", "--log-level", "DEBUG"]
... then when I connect to the Orion UI using the following URL ...
<http://127.0.0.1:30001>
... the page is completely black. The URL changes to be forwarded to ...
<http://127.0.0.1:30001/flow-runs>
... but the page is simply black.
If I try to refresh the page I receive the message the server unexpectedly dropped the connection
in Safari, and 127.0.0.1 didn't send any data. ERR_EMPTY_RESPONSE
in Chrome.
I'm sure that this is a silly config issue, but I can't work out for the life of me what it is and I've spent a silly amount of hours on this.
Any help is much appreciated. Thanks.
Files:
• k3d-config.yaml
- config to create the cluster.
• orion.yaml
- the Kubernetes Deployment and Service config.Regev Ben Simon
02/20/2023, 8:25 AMRegev Ben Simon
02/20/2023, 8:25 AM