Felix Haba
10/12/2022, 5:32 PMPaco Ibañez
10/12/2022, 6:41 PMprefect.deployments.run_deployment
?Adam
10/12/2022, 8:27 PMEnda Peng
10/12/2022, 8:55 PMShellTask
to run some command
ShellTask(stream_output=True, slug="xxxx", timeout=3600).run(command=xxxx)
Is it deprecated in v2 world? Everything is covered by @task
kent
10/12/2022, 11:06 PMsome backend services are in unknown state
What is wrong?
CONFIGFILE
apiVersion: batch/v1
kind: Job
metadata:
name: flow-run-job
labels:
app: flow-run-job
spec:
template:
spec:
containers:
- env: []
name: prefect-job
image: image-path
command: ["/bin/sh", "-c"]
args:
#deployments
- python ./workflows/tutorial.py;
prefect agent start -q test;
prefect orion start --host 0.0.0.0 --log-level WARNING;
ports:
- containerPort: 4200
restartPolicy: Never
---
apiVersion: v1
kind: Service
metadata:
name: flow-run-job
namespace: default
labels:
app: flow-run-job
spec:
ports:
- port: 4200
protocol: TCP
selector:
app: flow-run-job
Erik
10/13/2022, 6:38 AMfrom prefect import flow, task
from time import sleep
@task
def sleep_task():
sleep(5)
return 'sleep_task complete'
@flow(timeout_seconds=1)
def timeout_flow():
print(sleep_task())
return 'timeout_flow complete'
@flow
def main_flow():
try:
print(timeout_flow())
except Exception as e:
print('error caught:: ', repr(e))
The try; except block does not catch the error, instead the framework throws a TimeoutError exception. How can I catch prefect timeouts?Robin Weiß
10/13/2022, 7:08 AMFailed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "text/html". Strict MIME type checking is enforced for module scripts per HTML spec.
. I am running Chrome on Mac. A colleague of mine who is on a different network has the same issue by the way. Thanks 🙂Brad
10/13/2022, 9:20 AMDeepanshu Aggarwal
10/13/2022, 12:13 PMJehan Abduljabbar
10/13/2022, 12:41 PMTyler
10/13/2022, 1:47 PMPatrick Alves
10/13/2022, 2:08 PMVadym Dytyniak
10/13/2022, 2:42 PMSam Garvis
10/13/2022, 4:04 PMGhislain Picard
10/13/2022, 5:34 PMNathan R
10/13/2022, 5:44 PMJeff Hale
10/13/2022, 5:48 PMJarvis Stubblefield
10/13/2022, 6:23 PMJon
10/13/2022, 7:23 PMcreate_flow_run
and i want to pass what i generate in the flow to a subsequent flowNathaniel Russell
10/13/2022, 7:26 PMMichał Augoff
10/13/2022, 9:29 PMProjects
abstraction from Prefect 1? I found it useful to be able to group flows and check system dashboard per project. Or would you recommend to just use tags and custom views instead? (which is only possible with flow runs, not with flows or deployments)Santhosh Solomon (Fluffy)
10/14/2022, 3:44 AMZac Hooper
10/14/2022, 4:49 AMMalavika S Menon
10/14/2022, 8:41 AMwonsun
10/14/2022, 9:11 AMSimon Macklin
10/14/2022, 10:01 AMRomain
10/14/2022, 11:40 AMapply_map
. Is is correct to assume that I can easily change my apply_map uses, by subflow runned in parallel?John Mizerany
10/14/2022, 1:44 PMSuccessfully registered 0 blocks
and the block is not created in the Cloud UI. I have been following the instructions given in the collections documentation and the prefect-dbt githubIlya Galperin
10/14/2022, 3:03 PM<https://app.prefect.cloud/account/ACCOUNTID/workspace/WORKSPACEID/flow-runs/flow-run/FLOWRUNID>
while others use:
<https://app.prefect.cloud/account/ACCOUNTID/workspace/WORKSPACEID/flow-run/FLOWRUNID>
Where the first example has flow-runs/flow-run
and the second just uses a flow-run
format.
Some of our users get a 404 error on all links of the first type, and others get 404 on all links of the second type. Does anyone know what might be happening or how to fix this?Sander
10/14/2022, 4:19 PM