Replies: 1 comment
-
|
One additional note as the person whose Marvin chat led to this: The deploy wizard works under 3.4.19 if I put a prefect.yaml in a subfolder with only a few flows, none of which generate the syntax warning, so it is only this edge case where there is a syntax issue that seems related to the behavior, which is puzzling mostly because it happens without any warning or error messages. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
This discussion was created from a Slack thread conversation.
Original Thread: https://prefect-community.slack.com/archives/C04DZJC94DC/p1758656241255729
Summary
On Windows with Python 3.12.8, the interactive
prefect deploywizard in Prefect 3.4.19 appears to skip the flow discovery step entirely and proceeds directly to the work pool selection after choosing “No, configure a new deployment”. Regressing to 3.3.6 restores the expected behavior where the wizard prints “Scanning for flows…” and lists discovered flows before prompting for the work pool.Environment (failing)
Environment (working)
Behavior difference
\d,\-) during the scan. The warnings show as<unknown>:line: SyntaxWarning: invalid escape sequence …(no file path).Direct entrypoint deploy works in both versions
prefect deploy engineering\tools\get_ip.py:get_ip -n debug_directsucceeds, indicating imports and API connectivity are fine in the failing environment and that the issue is specific to the discovery step of the wizard.prefect.yaml from the project (redacted)
Additional notes
.prefectignoredoes not appear to influence the interactive discovery step; ignored directories still appear in 3.3.6’s scan list. It does affect packaging/upload, but discovery still traverses files.<unknown>instead of including the offending file path, which makes remediation harder. The user can reproduce and remove those warnings by compiling withpython -W default -m py_compileorpython -W default -X dev -m compileall -q ..Repro steps
prefect deploy.prefect deploy path\to\file.py:flow_name -n test— this succeeds on both versions.Expectation
Impact
Workarounds
prefect deploy path\to\file.py:flow_name -n my-deploy.flow.from_source(...).deploy(...).Request
This discussion was automatically created by the Marvin bot to preserve valuable community insights.
Beta Was this translation helpful? Give feedback.
All reactions