Tomás Emilio Silva Ebensperger
03/23/2023, 4:14 PMDeployment.build_from_flow
similar to what you do when using the CLI
prefect --profile "profile1" deployment build ....
jack
03/23/2023, 6:00 PMPatrick Tan
03/23/2023, 6:05 PMMichał Augoff
03/23/2023, 6:58 PMAustin Weisgrau
03/23/2023, 8:30 PMTraceback (most recent call last):
File "/home/aradox/code/wfp/wfp-prefect/utilities/slack.py", line 93, in handled_error_func
return func(*args, **kwargs)
File "/home/aradox/code/wfp/wfp-prefect/utilities/van.py", line 213, in alert_new_van_contact
"flow": get_run_context().flow.name,
AttributeError: 'TaskRunContext' object has no attribute 'flow'
Ethan Veres
03/23/2023, 9:48 PMpath
argument specified?
I’m using S3 storage and for each deployment I specify a custom `path`:
Deployment.build_from_flow(flow=flow, infrastructure=ECSTask.load('...'), storage=S3.load('...'), name=my_custom_name, path=my_custom_name, apply=True)
my flow assumes that the files in storage are pulled to the root during flow runs but _now it seems like it’s pulled as a subdirectory of my__custom_name
Choenden Kyirong
03/23/2023, 10:50 PMSamuel Hinton
03/24/2023, 12:51 AMFaheem Khan
03/24/2023, 2:08 AMEthan Veres
03/24/2023, 4:21 AMDeceivious
03/24/2023, 8:11 AMwith_options
methods?Denys Volokh
03/24/2023, 9:13 AMkey_file
but it fails with error
TypeError: connect() got an unexpected keyword argument 'key_file'
Stephen Lloyd
03/24/2023, 9:44 AMrun_deployment()
to create a flow of flows. But I'd like the logs to be available from the top level flow. I have tried using log_prints=True
, but this hasn't solved the problem.
Any thoughts? @James Zhang I saw you were using run_deployment()
. Any luck surfacing logs into the parent flow?Srini
03/24/2023, 10:24 AMMohammad Kaif Rizvi
03/24/2023, 10:35 AMSrini
03/24/2023, 10:36 AMOscar Björhn
03/24/2023, 12:49 PMSrini
03/24/2023, 1:21 PMRunning
• Kill the server
• Kill the flow run in the terminal
• Re-start the server -> Flow run state is still in Running
My question is: Will the server notice that the flow has been running longer than the specified timeout_seconds
and recover from it (have a state that will be retried)?
Deployments have the same behaviour too. If my observation is correct, I can open a github issue to track thisJustin Stanley
03/24/2023, 2:24 PMFailed to load and execute Flow's environment: HangupException('@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\r\n@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!
I can't find anything in the docs about it... anyone have any ideas where to start looking? These Flows were all working properly previously.Deceivious
03/24/2023, 2:29 PMJavier Helguera
03/24/2023, 3:37 PMfrom prefect import flow
class myClass:
@flow(log_prints=True)
def start(self):
print("Start class")
if __name__ == "__main__":
myclass = myClass()
myclass.start()
This is the error that I get:
Error binding parameters for function 'start': missing a required argument: 'self'.
Thanks for your help!Raphael Perez
03/24/2023, 3:53 PMkubectl -n <my_namespace> apply -f prefect2_agent.yaml
the deployment launches but keeps returning Response: {'detail': 'Not Found'}
when attempting to connect to the work-queue. Even after manually exec'ing into the deployment pod and running a prefect cloud login -k $PREFECT_API_KEY
receiving a login confirmation and choosing the correct workspace I cannot interact with any resource.
For example running prefect cloud workspace ls
raise the error AttributeError: 'NoneType' object has no attribute 'groups'
even though the workspace was correctly set in the cloud login step.
If anyone could shine a light where my issue may be I'd be grateful.Bianca Hoch
03/24/2023, 4:10 PM@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
SHA256:uNiVztksCsDhcc0u9e8BujQXVUpKZIDTMczCvj3tD2s.
Please contact your system administrator.
Add correct host key in ~/.ssh/known_hosts to get rid of this message.
Host key for <http://github.com|github.com> has changed and you have requested strict checking.
Host key verification failed.
GitHub updated their RSA SSH Host Key today. There are troubleshooting steps that are outlined in this article which should allow your flows to continue running and clear up the error. 👍Edmondo Porcu
03/24/2023, 4:36 PMMichael Michael
03/24/2023, 5:22 PMMichael Michael
03/24/2023, 5:23 PMAdam
03/24/2023, 5:27 PMtoo many values to unpack (expected 2)
error, anyone know what I might be doing wrong? im on version 2.8.6Adam
03/24/2023, 5:29 PMjack
03/24/2023, 7:47 PMscott
03/24/2023, 8:31 PM