Nitin Bansal
05/25/2023, 7:49 AMMark NS
05/25/2023, 8:00 AMCrash detected! Execution was interrupted by an unexpected exception: Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/anyio/streams/tls.py", line 130, in _call_sslobject_method
result = func(*args)
File "/usr/local/lib/python3.10/ssl.py", line 917, in read
v = self._sslobj.read(len)
ssl.SSLWantReadError: The operation did not complete (read) (_ssl.c:2548)
During handling of the above exception, another exception occurred:
RuntimeError: Event loop is closed
Have there been any other reports of this?Andreas Tsangarides
05/25/2023, 9:20 AMPrefect 1
I could do this:
def test_my_task():
with prefect.context(dict(flow_run_id="test_id")):
my_task()
# assertions
how c an this be done in Prefect 2
?Heather
05/25/2023, 9:23 AMflow.set_dependencies(create_my_flow_run(), upstream_tasks=[task_with_1_retry])
But this only runs create_my_flow_run
after the retry has finished, I want to run the flow after the first failure, so I tried adding:
@task
...
try:
something_that_might_fail()
finally:
StartFlowRun(flow_name=my_flow.name).run()
To the bottom of task_with_1_retry
- but getting the error:
Unexpected error while running flow: KeyError('Task slug case(1111)-1 is not found in the current Flow. This is usually caused by a mismatch between the flow version stored in the Prefect backend and the flow that was loaded from storage.
Any ideas how to achieve what I described? Thanks!Giacomo Chiarella
05/25/2023, 9:53 AMGiacomo Chiarella
05/25/2023, 12:31 PMprefect block delete --id <some_id>
but I get Deployment '<some_id>' not found!
is it a bug?Ritabrata Moitra
05/25/2023, 1:03 PM12:30:23.877 | INFO | Flow run 'refreshing-coyote' - Downloading flow code from storage at ''
12:30:36.187 | ERROR | Flow run 'refreshing-coyote' - Flow could not be retrieved from deployment.
....
socket.gaierror: [Errno -5] No address associated with hostname
...
aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host <bucket-name>.<http://s3.eu-west-1.amazonaws.com:443|s3.eu-west-1.amazonaws.com:443> ssl:default [No address associated with hostname]
...
botocore.exceptions.EndpointConnectionError: Could not connect to the endpoint URL: "https://<bucket-name>.<http://s3.eu-west-1.amazonaws.com/?list-type=2&prefix=&delimiter=&encoding-type=url|s3.eu-west-1.amazonaws.com/?list-type=2&prefix=&delimiter=&encoding-type=url>"
...
I am using a ECS task infra block ( definition in comments ) and building my deployment like this - prefect deployment build ecr_flow.py:ecr_flow -n ecr_flow_path -sb s3/prefect-s3-storage --path opt/prefect/flows -a -q rito
Any pointers where I could be going wrong?chris arettines
05/25/2023, 1:24 PMMarco Barbero Mota
05/25/2023, 4:16 PMPedro Machado
05/25/2023, 4:48 PMTask run encountered an exception: botocore.exceptions.NoCredentialsError: Unable to locate credentials
Is it possible to use the S3 Block/Credential block to assume a specific role?Anders Segerberg
05/25/2023, 5:16 PMprint
statements. I am unable to see this output when I run the flow. What am I doing wrong?Jarvis Stubblefield
05/25/2023, 5:27 PMrun_deployment
specified in one of it’s routes. When posting to that URL I get an error and it seems like it is looking for the deployment on a local copy of Prefect Server (previously Orion) instead of Prefect Cloud which is what I’m using… Here’s the error without the stack trace…
prefect.exceptions.PrefectHTTPStatusError: Client error '404 Not Found' for url '<http://ephemeral-prefect/api/deployments/name/alert-early-intervention/alert_early_intervention>'
… I have confirmed that the deployment exists in my Prefect Cloud under the name alert-early-intervention/alert_early_intervention
.Marc Lipoff
05/25/2023, 6:45 PMRoss Leung
05/25/2023, 7:36 PM__post_init__
method and checks and initializes a self
parameter, the __post_init__
gets called AGAIN when the a task run gets created.Sean Conroy
05/25/2023, 9:19 PMFailed("Flow run encountered an exception. PrefectHTTPStatusError: Client error '429 Too Many Requests' for url '<https://api.prefect.cloud/api/accounts/XYZ/workspaces/XYZ/flow_runs/XYZ>'\nResponse: {'detail': 'Orchestration API rate limit reached'}\nFor more information check: <https://httpstatuses.com/429>\n"
I don't know how this is possible - since I'm in no way interacting with prefect server. I've used previous versions of Prefect and never seen this before. I've replaced the specific strings with XYZRyan Morshead
05/25/2023, 9:24 PMException ignored in: <async_generator object add_event_loop_shutdown_callback.<locals>.on_shutdown at 0x7f3d81b374c0>
Traceback (most recent call last):
File "/home/jon/miniconda3/envs/abraxas-env/lib/python3.10/site-packages/prefect/utilities/asyncutils.py", line 308, in on_shutdown
AttributeError: 'NoneType' object has no attribute 'pop'
Which seems related to this issue (which I’ve already commented on). I have no idea how to solve this. It seems like some odd threading/multiprocessing bug where EVENT_LOOP_GC_REFS is not being copied over correctly somehow.nicholasnet
05/25/2023, 9:45 PMdef child_flow_c():
d = run_deployment("child-flow-d/dep-child-d")
# How can I be sure that run_deployment("child-flow-d/dep-child-d") is completed before moving to next line/deployment
e = run_deployment("child-flow-d/dep-child-d")
How we check the status of run_deployment
is completed before executing another run_deployment
Jacob Bedard
05/25/2023, 9:45 PMJohn Horn
05/25/2023, 10:24 PMNico Neumann
05/26/2023, 1:05 AMprefect==2.10.11
version because of sqlalchemy 2.0 support. Thanks for the fast support there! 🚀
Now I have a problem with my custom block when I try to run my flows: KeyError: "No class found for dispatch key 'my-custom-block' in registry for type 'Block'."
prefect_aws==0.3.2
is installed and PREFECT_EXTRA_ENTRYPOINTS
is set. I’m using prefect cloud and the agent is updated to the latest version.
I downgraded my prefect docker image to version 2.10.10 and it works fine again. Full log attached in the threadNimesh Kumar
05/26/2023, 7:43 AMNikhil Joseph
05/26/2023, 8:17 AMOrchestration API rate limit reached
all day, any idea what's up?
I have mapped functions that around 3-4k iterations.
by the time I am around half of it. I hit this error and it crashes on its own.
When I retry, by the time it finds all completed tasks (checkpoints), it will raise the error again and won't move forward.
using prefect:2.10.10-python3.10 and running on ecs with s3 result storageDeceivious
05/26/2023, 8:26 AMGiacomo Chiarella
05/26/2023, 9:19 AMDeceivious
05/26/2023, 10:20 AMNikhil Joseph
05/26/2023, 11:43 AMJohn Mizerany
05/26/2023, 1:27 PMSimon
05/26/2023, 2:31 PMclass AnnotationAirtable(Base)
declaration with typing.@runtime_checkable, but received the same error.
I have tried separating the flow import with another module as a buffer (in desperation, to try to stop the ORM model import from happening!), also to no avail.massintha azamoum
05/26/2023, 3:11 PMMansour Zayer
05/26/2023, 5:27 PM