Hwi Moon
Victor
PREFECT_API_KEY
Andreas Geissner
import time from prefect import flow, task, get_run_logger @task def wait_task(t): time.sleep(t) return_value = f'Waited for {t} seconds' get_run_logger().info(f'Now returning the following sentence: {return_value}') return return_value @flow def minimal_wait(): logger = get_run_logger() status = wait_task.submit(5).wait(10) <http://logger.info|logger.info>(f'Status when waiting 5 s with time limit 10 s: {status}') status = wait_task.submit(15).wait(10) <http://logger.info|logger.info>(f'Status when waiting 15 s with time limit 10 s: {status}') minimal_wait()
.wait()
.result()
Paige Gulley
Arthur
asyncio - Exception in callback SubprocessStreamProtocol.pipe_data_received(1, b'accepted: 0...pted: 1 (1)\n') handle: <Handle SubprocessStreamProtocol.pipe_data_received(1, b'accepted: 0...pted: 1 (1)\n')> Traceback (most recent call last): File "/usr/lib/python3.11/asyncio/events.py", line 84, in _run self._context.run(self._callback, *self._args) File "/usr/lib/python3.11/asyncio/subprocess.py", line 72, in pipe_data_received reader.feed_data(data) File "/usr/lib/python3.11/asyncio/streams.py", line 498, in feed_data assert not self._eof, 'feed_data after feed_eof' ^^^^^^^^^^^^^ AssertionError: feed_data after feed_eof
Santiago Toso
prefect.yaml
prefect deploy
prefect: error: unrecognized arguments: deploy
prefect=2.19.4
Abimbola Adebayo
Flow run could not be submitted to infrastructure: Google Cloud Run Service Agent <mailto:service-850000352187@serverless-robot-prod.iam.gserviceaccount.com|service-850000352187@serverless-robot-prod.iam.gserviceaccount.com> must have permission to read the image, us-east1-docker.pkg.dev/prefect-org-github-actions/dockerhub-mirror/prefecthq/prefect:2-python3.9. Ensure that the provided container image URL is correct and that the above account has permission to access the image. If you just enabled the Cloud Run API, the permissions might take a few minutes to propagate. Note that the image is from project [prefect-org-github-actions], which is not the same as this project [prefect-prd-mex-cloudrun-8]. Permission must be granted to the Google Cloud Run Service Agent <mailto:service-850000352187@serverless-robot-prod.iam.gserviceaccount.com|service-850000352187@serverless-robot-prod.iam.gserviceaccount.com> from this project.
Denver H
Brennan Tolman
Farooque Shaikh
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.