Anton
09/29/2023, 12:43 PM(anton) C:\Users\Anton\Desktop\DE2\2_workflow_orchestration\flows\03_deployments>python flow_pandas.py
Traceback (most recent call last):
File "C:\Users\Anton\Desktop\DE2\2_workflow_orchestration\flows\03_deployments\flow_pandas.py", line 5, in <module>
from prefect import flow, task
File "C:\Users\Anton\anaconda3\envs\anton\Lib\site-packages\prefect\_init_.py", line 37, in <module>
from prefect.runner import Runner, serve
File "C:\Users\Anton\anaconda3\envs\anton\Lib\site-packages\prefect\runner.py", line 46, in <module>
from prefect.client.orchestration import get_client
File "C:\Users\Anton\anaconda3\envs\anton\Lib\site-packages\prefect\client\orchestration.py", line 11, in <module>
import pydantic
File "pydantic\_init_.py", line 2, in init pydantic._init_
File "pydantic\dataclasses.py", line 41, in init pydantic.dataclasses
# +=========+=========================================+
ModuleNotFoundError: No module named 'typing_extensions'
I updated all the packages in my env, prefect, python, etc. checked all the possible solutions around 'typing_extensions'. Maybe I missed something obvious? Do you have any suggestions to where should I look? Cheers!Yaron Levi
09/29/2023, 1:46 PMKyle Niosco
09/29/2023, 2:58 PMGregory Hunt
09/29/2023, 3:25 PMInfrastructure returned without reporting flow run 'ae92eb90-d347-4c4d-b15b-ad4cbf3b5466' as started or raising an error. This behavior is not expected and generally indicates improper implementation of infrastructure. The flow run will not be marked as failed, but an issue may have occurred.
I am returning a 0 status_code and an identifier, so I can't figure out what is triggering thisJason Wiener
09/29/2023, 8:04 PMprefect profile use 'eks'
or prefect profile use 'local'
, prefect deployment ls
returns the list of deployments from my cloud instance. This also occurs with prefect -p 'eks' deployment ls
or prefect -p 'local' deployment ls
. prefect profile ls
shows all three profiles and shows 'eks' as the active profile. The deploy commands also seems stuck on the cloud profile. Any ideas what's going on?Eric
09/29/2023, 9:51 PMbotocore.errorfactory.ClientException: An error occurred (ClientException) when calling the RegisterTaskDefinition operation: Fargate requires task definition to have execution role ARN to support ECR images.
Matt Alhonte
09/30/2023, 12:29 AMThiago Salgado
10/01/2023, 8:34 PMAtte Keinänen
10/02/2023, 7:14 AMLior Barak
10/02/2023, 9:27 AMFile "/usr/local/lib/python3.10/site-packages/alembic/script/base.py", line 276, in _catch_revision_errors
raise util.CommandError(resolution) from re
alembic.util.exc.CommandError: Can't locate revision identified by '05ea6f882b1d'
Application startup failed. Exiting.
Server stopped!
full stack trace in thread
happened to anybody else?Soami Charan
10/02/2023, 9:59 AMShane Breeze
10/02/2023, 10:17 AMSamuel Hinton
10/02/2023, 10:24 AMMitch
10/02/2023, 12:58 PM--no-pull
?Nemanja
10/02/2023, 1:18 PMdel dataframe
gc.collect()
But it does not get released from cache
Any ideas?Avi
10/02/2023, 1:41 PMNotifications
documentations. The link from the UI is sending me to 404 error.
I would like to customize my slack message, however I can not understand how to extract flow data inside the configuration setupAli Mir
10/02/2023, 2:59 PMEric
10/02/2023, 3:20 PMLucas Cavalcanti Rodrigues
10/02/2023, 3:21 PMKevin McCraney
10/02/2023, 7:34 PMEric
10/02/2023, 8:11 PMEric
10/02/2023, 8:18 PMBrian Newman
10/02/2023, 9:34 PMclass User(BaseModel):
"""Pydantic model for the User."""
email: Optional[str]
firstName: Optional[str]
lastName: Optional[str]
@task()
def user_json(user: User):
"""Should return a JSON representation of only the set fields in the User model."""
print(user)
# Outputs: email=None firstName='John' lastName=None
print(user.json(exclude_unset=True))
# Outputs: {"email": null, "firstName": "John", "lastName": null}
return user.json(exclude_unset=True)
@flow()
def fl_create_user():
"""Creates a new user with only the first_name set and calls the user_json task."""
user = User(firstName="John")
print(user)
# Outputs: email=None firstName='John' lastName=None
print(user.json(exclude_unset=True))
# Outputs: {"firstName": "John"}
json_user = user_json(user)
print(json_user)
# Outputs: {"email": null, "firstName": "John", "lastName": null}
Matt Alhonte
10/03/2023, 1:42 AMrun_deployment
(run from a task). I notice that if one fails, then the downstream ones don't fail. How do I make subflow failures propagate to the parent flow? I'm using the ConcurrentTaskRunner
. Some need to run concurrently with each other.Matt Alhonte
10/03/2023, 2:07 AMwait_for
argument to all run at the same time, while any Failure kills the whole thing.
from prefect import flow, task
from prefect.task_runners import ConcurrentTaskRunner
import time
def fail_hook(flow, flow_run, state):
print("Failed")
raise Exception(state.message)
@task(log_prints=True, on_failure=[fail_hook])
def my_task():
time.sleep(15)
# some code here
raise Exception("This task has failed.") # this will set the task to Failed state
@task(log_prints=True, on_failure=[fail_hook])
def my_task2():
time.sleep(25)
return "sdfsdf"
@flow(
task_runner=ConcurrentTaskRunner(),
)
def my_flow():
result1 = my_task.submit(return_state=True)
result2 = my_task2.submit(return_state=True)
result3 = my_task.submit(return_state=True)
result4 = my_task2.submit(return_state=True, wait_for=[result1])
Matt Fysh
10/03/2023, 3:13 AMLaszlo [Gimlet.io]
10/03/2023, 11:36 AMTarun Reddy
10/03/2023, 12:23 PMTarun Reddy
10/03/2023, 12:24 PMJason Motley
10/03/2023, 2:39 PM