Theo Sjöstedt
05/05/2023, 7:52 AMМихаил Бараковский
05/05/2023, 9:29 AMEthan Veres
05/05/2023, 2:11 PMSantiago Gonzalez
05/05/2023, 2:34 PMsubmit
interface at the SubFlows, but I couldn’t found it. What I could found is an existing issue about it, so I wanted to know if you already found a solution for this scenario. Is there a way to set upstream dependency as well?. thanks in advanceNicholas Torba
05/05/2023, 3:10 PMquassy
05/05/2023, 3:28 PMRobin
05/06/2023, 10:52 AMpython flow.py
).
However, when deploying the code and triggering a run from the API, downloading flow code takes more than 10 minutes and eventually fails.
I am pretty sure that the same or similar setup worked a couple of weeks ago 😮Chandan Maruthi
05/06/2023, 5:47 PMThomas Moore
05/09/2023, 6:30 PMAndy Dienes
05/10/2023, 2:13 PMdef Flow(*flow_args, **flow_kwargs):
# basically the same as @prefect.flow but adds Slack webhook
def decorator(func):
@wraps(func)
def wrapper(*args, **kwargs):
try:
return func(*args, **kwargs)
except Exception as e:
slack_webhook_block = SlackWebhook.load("alerts-prefect")
msg = f"Your job {func.__name__} failed with exception {e}.\n"
msg += f"See the flow run at: <https://prefect.myinstance.net/flow-runs/flow-run/{prt.flow_run.id}>\n"
msg += f"Tags: {prt.flow_run.tags}\n"
msg += f"Scheduled start time = {prt.flow_run.scheduled_start_time}"
slack_webhook_block.notify(msg)
raise e
return flow(*flow_args, **flow_kwargs)(wrapper)
return decorator
it works, but it pings for each retry of the flow. any tips to make my flow ping only once the whole thing fails, not just a retry?Ananya Mishra
05/10/2023, 8:03 PMprefect block delete...
. However, when trying to delete these blocks, we keep getting 409 Conflict error codes on those blocks.
Strange, because the same blocks can be deleted just fine through the UI. Any ideas on how we could resolve this? Feeling like some kind of issue with how the API is handling block deletion...Santiago Gonzalez
05/10/2023, 8:04 PMpsycopg2
library copy_expert
method on cursor, I wanted to know if there is any behavior I can take advantage from on SqlAlchemyConnector
class?Andy Dienes
05/12/2023, 1:31 PMretries=2
but they consistently run 9x
before finally failing. this makes me think that there is some other process also retrying 3x? has anybody encountered this before?Nick Williams
05/15/2023, 8:16 AMAlessandro De Rose
05/15/2023, 5:20 PMprefect deploy --all
to deploy multiple deployments stored in a deployment.yaml
file. I have a build step stored in prefect.yaml
to generate an image containing flow dependencies where push: true
to ensure that the built image is pushed to Google Artifact Registry (from which Cloud Run infra will pull from). The call to deploy
is being carried out in a GitHub action, before calling prefect deploy --all
, I have run gcloud auth configure-docker <http://us-docker.pkg.dev|us-docker.pkg.dev>
to configure gcloud
as the credential helper for docker. However, this action is currently failing with the error unauthorized: access token has insufficient scopes
because Prefect seems to be attempting to push to <http://docker.io|docker.io>
still (The push refers to repository [<http://docker.io/.../...|docker.io/.../...>]
). Any thoughts on what's causing this?CALVIN CHEN
05/16/2023, 4:19 AMPrefect Orion Start
and doesn't seem to affect the user-facing behavior of the application, but still show the message regarding SSL 997 error
.
When I try to connect to Prefect cloud under my company domain (VPN), it failed and I am not able to connect to Prefect Cloud. It showed that "ERROR: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate in certificate chain (_ssl.c:997)"
.
I understand I do not have the certificate on my laptop, so it might be the reason. I found those resources might be helpful, but still have no clue to solve my issue. Could someone guide me on the issue?
https://github.com/PrefectHQ/prefect/issues/7596
https://github.com/PrefectHQ/prefect/issues/6038
My laptop is Windows and our company is using Zscaler so I am not sure if I still can set up a proxy server to solve it.
Thanks,Santiago Gonzalez
05/16/2023, 4:26 PMdocker-git
recipe, and I am running these commands:
prefect cloud login -k {key} -w {workspace}
prefect project init --recipe docker-git -f image_name=some-docker-image -f tag=latest -f repository={repository} -f branch=master
prefect deploy {flow_path}.py:{access_method} -n {flow_name} -p pool
Output:
Warning: extra fields provided for 'docker-git' recipe: 'repository, branch'
12:52:38 ---------------
12:52:38 Created project in /home/ec2-user/workspace/_Team_automation-flows-v2_master
12:52:38 with the following new files:
12:52:38 deployment.yaml
12:52:38 prefect.yaml
12:52:38 .prefect/
12:52:41 An exception occurred.
12:52:41 Traceback (most recent call last):
12:52:41 File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 703, in urlopen
12:52:41 httplib_response = self._make_request(
12:52:41 File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 398, in _make_request
12:52:41 conn.request(method, url, **httplib_request_kw)
12:52:41 File "/usr/local/lib/python3.8/site-packages/urllib3/connection.py", line 244, in request
12:52:41 super(HTTPConnection, self).request(method, url, body=body, headers=headers)
12:52:41 File "/usr/local/lib/python3.8/http/client.py", line 1252, in request
12:52:41 self._send_request(method, url, body, headers, encode_chunked)
12:52:41 File "/usr/local/lib/python3.8/http/client.py", line 1298, in _send_request
12:52:41 self.endheaders(body, encode_chunked=encode_chunked)
12:52:41 File "/usr/local/lib/python3.8/http/client.py", line 1247, in endheaders
12:52:41 self._send_output(message_body, encode_chunked=encode_chunked)
12:52:41 File "/usr/local/lib/python3.8/http/client.py", line 1007, in _send_output
12:52:41 self.send(msg)
12:52:41 File "/usr/local/lib/python3.8/http/client.py", line 947, in send
12:52:41 self.connect()
12:52:41 File "/usr/local/lib/python3.8/site-packages/docker/transport/unixconn.py", line 27, in connect
12:52:41 sock.connect(self.unix_socket)
12:52:41 FileNotFoundError: [Errno 2] No such file or directory
Gregory Hunt
05/17/2023, 12:40 PMItay Kruk
05/17/2023, 1:11 PMkelv
05/17/2023, 2:10 PMSeungTaeKim
05/18/2023, 1:30 AMSantiago Gonzalez
05/18/2023, 1:36 PM@flow
def demo_flow():
with ShellOperation(commands=['sleep 1m', 'echo "hello world"']) as shell_task:
process = shell_task.trigger()
process.wait_for_completion()
output = process.fetch_result()
get_run_logger().info(f'Output: "{output}"')
if __name__ == '__main__':
demo_flow()
But it is failing, with this error:
10:31:35.447 | ERROR | asyncio - Exception in callback SubprocessStreamProtocol.pipe_data_received(1, b'hello world\n')
handle: <Handle SubprocessStreamProtocol.pipe_data_received(1, b'hello world\n')>
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/asyncio/events.py", line 81, in _run
self._context.run(self._callback, *self._args)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/asyncio/subprocess.py", line 73, in pipe_data_received
reader.feed_data(data)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/asyncio/streams.py", line 472, in feed_data
assert not self._eof, 'feed_data after feed_eof'
AssertionError: feed_data after feed_eof
prefect: 2.10.9
prefect-shell: 0.1.5
python: 3.8.10Ashe
05/18/2023, 9:25 PMSoami Charan
05/19/2023, 8:28 AMPaused
more than 30 days.
So in prefect cloud, those flow will be deleted automatically?Robin
05/20/2023, 9:21 PMNicholas Torba
05/22/2023, 4:00 PMjpuris
05/24/2023, 11:06 AMEnforced SSO
via Google.
On Pricing page, I see it is available, but in the docs Single Sign-on (SSO), it states following
Prefect Cloud's Organization and Enterprise plans offer single sign-on (SSO) integrationAm I correct assuming the Google SSO is not available on Personal tier? edit: In other words, for us to be able to use SSO, we need to upgrade to "Organisation" plan?
Nicholas Torba
05/24/2023, 2:04 PMValery Lavrentiev
05/24/2023, 3:57 PMalex
05/24/2023, 4:43 PM