Prefect is a workflow orchestration framework for building resilient data pipelines in Python.
17504 matches across 18 categories. Click a row to expand file-level details.
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | hatch_build.py | 27 | def should_validate_packaged_ui_index_files(root: str | Path) -> bool: |
| LOW | hatch_build.py | 38 | def validate_packaged_ui_index_files(root: str | Path) -> None: |
| LOW | ui/src/types/automation.ts | 32 | export function isAutomationActionFormValues(value: AutomationFormValues): value is AutomationActionFormValues { |
| LOW | ui/src/components/AutomationWizardStepTrigger.vue | 67 | function updateTriggerFromJsonString(): AutomationTrigger { |
| LOW | ui/src/services/apiStatus.ts | 12 | export function setupApiStatusInterceptor(axiosInstance: AxiosInstance): void { |
| LOW | plans/2026-01-12-deployment-crud-events.md | 140 | async def _deployment_related_resources( |
| LOW | plans/2026-01-12-deployment-crud-events.md | 165 | async def emit_deployment_created_event( |
| LOW | plans/2026-01-12-deployment-crud-events.md | 179 | async def emit_deployment_updated_event( |
| LOW | plans/2026-01-12-deployment-crud-events.md | 197 | async def emit_deployment_deleted_event( |
| LOW | plans/2025-01-31-per-node-dbt-orchestration.md | 386 | def compute_freshness_expiration( |
| LOW | plans/completed/2026-02-18-runner-refactor.md | 256 | def propose_awaiting_retry_sync(self, flow_run: FlowRun) -> None: ... |
| LOW | plans/completed/2026-02-18-runner-refactor.md | 546 | def reschedule_current_flow_runs(self) -> None: ... # sync — uses snapshot(), sync client |
| LOW | plans/completed/2026-02-18-runner-refactor.md | 583 | async def _run_on_cancellation_hooks(self, flow_run: "FlowRun", state: "State") -> None: ... |
| LOW | plans/completed/2026-02-18-runner-refactor.md | 592 | async def _get_and_submit_flow_runs(self) -> None: ... # → _scheduled_run_poller._get_and_subm |
| LOW | plans/completed/2026-02-18-runner-refactor.md | 595 | async def _mark_flow_run_as_cancelled(self, flow_run: "FlowRun", state_updates: "dict[str, Any] | None" = None) -> N |
| LOW | plans/completed/2026-02-18-runner-refactor.md | 596 | async def _handle_cancellation_observer_failure(self) -> None: ... |
| LOW | tests/conftest.py | 163 | def pytest_collection_modifyitems( |
| LOW | tests/conftest.py | 266 | async def restore_loop_after_each_test(): |
| LOW | tests/conftest.py | 296 | def assert_lifespan_is_not_left_open(): |
| LOW | tests/conftest.py | 424 | async def generate_test_database_connection_url( |
| LOW | tests/conftest.py | 506 | def test_database_connection_url( |
| LOW | tests/conftest.py | 608 | def leaves_no_extraneous_files(): |
| LOW | tests/test_serializers.py | 403 | def test_does_not_allow_object_hook_collision(self): |
| LOW | tests/test_serializers.py | 407 | def test_does_not_allow_default_collision(self): |
| LOW | tests/test_serializers.py | 411 | def test_pydantic_generic_model_roundtrip(self): |
| LOW | tests/test_serializers.py | 455 | def test_exc_type_rejects_non_exception_class(self): |
| LOW | tests/test_serializers.py | 461 | def test_exc_type_allows_real_exception(self): |
| LOW | tests/test_serializers.py | 468 | def test_exc_type_raises_on_unimportable_class(self): |
| LOW | tests/test_serializers.py | 474 | def test_exc_type_raises_on_dotless_name(self): |
| LOW | tests/test_serializers.py | 478 | def test_class_path_handles_unimportable_class(self): |
| LOW | tests/test_serializers.py | 484 | def test_class_path_handles_dotless_name(self): |
| LOW | tests/test_serializers.py | 88 | def restore_dispatch_registry(self): |
| LOW | tests/test_serializers.py | 98 | def test_serializers_do_not_allow_extra_fields(self): |
| LOW | tests/test_serializers.py | 111 | def test_serializers_can_be_created_by_dict(self): |
| LOW | tests/test_serializers.py | 127 | def test_serializers_can_be_created_by_object(self): |
| LOW | tests/test_serializers.py | 143 | def test_serializers_can_be_created_by_type_string(self): |
| LOW | tests/test_serializers.py | 165 | def test_unknown_serializers_raise_validation_error(self): |
| LOW | tests/test_serializers.py | 184 | def test_simple_roundtrip_with_builtin_pickle(self, data): |
| LOW | tests/test_serializers.py | 189 | def test_picklelib_must_be_string(self): |
| LOW | tests/test_serializers.py | 206 | def test_picklelib_must_implement_dumps(self, monkeypatch: pytest.MonkeyPatch): |
| LOW | tests/test_serializers.py | 216 | def test_picklelib_must_implement_loads(self, monkeypatch: pytest.MonkeyPatch): |
| LOW | tests/test_serializers.py | 250 | def test_simple_roundtrip_with_complex_bytes(self, data: Any): |
| LOW | tests/test_serializers.py | 263 | def test_uses_alternative_json_library(self, monkeypatch: pytest.MonkeyPatch): |
| LOW | tests/test_serializers.py | 276 | def test_json_serializer_does_not_consume_iobase_objects(self): |
| LOW | tests/test_serializers.py | 337 | def test_allows_custom_encoder(self, monkeypatch: pytest.MonkeyPatch): |
| LOW | tests/test_serializers.py | 362 | def test_allows_custom_decoder(self, monkeypatch: pytest.MonkeyPatch): |
| LOW | tests/test_serializers.py | 386 | def test_allows_custom_kwargs(self, monkeypatch: pytest.MonkeyPatch): |
| LOW | tests/test_serializers.py | 437 | def test_dataclass_generic_model_roundtrip(self): |
| LOW | tests/test_serializers.py | 497 | def test_allows_stdlib_compression_libraries(self, lib): |
| LOW | tests/test_serializers.py | 502 | def test_uses_alternative_compression_library( |
| LOW | tests/test_serializers.py | 515 | def test_uses_given_serializer(self, monkeypatch: pytest.MonkeyPatch): |
| LOW | tests/test_infrastructure_bound_flow.py | 60 | def mock_subprocess_check_call(self, monkeypatch: pytest.MonkeyPatch): |
| LOW | tests/test_infrastructure_bound_flow.py | 113 | async def work_pool_without_default_result_storage( |
| LOW | tests/test_infrastructure_bound_flow.py | 145 | async def work_pool_missing_storage_configuration( |
| LOW | tests/test_infrastructure_bound_flow.py | 160 | def test_bind_flow_to_infrastructure( |
| LOW | tests/test_infrastructure_bound_flow.py | 178 | def dragged_through_the_garden(): |
| LOW | tests/test_infrastructure_bound_flow.py | 292 | def test_bind_flow_to_infrastructure_normalizes_launcher( |
| LOW | tests/test_infrastructure_bound_flow.py | 311 | def test_bind_flow_to_infrastructure_rejects_invalid_launcher_keys( |
| LOW | tests/test_infrastructure_bound_flow.py | 329 | def test_bind_flow_to_infrastructure_rejects_empty_launcher_override( |
| LOW | tests/test_infrastructure_bound_flow.py | 344 | def test_with_options_preserves_launcher_when_not_provided( |
| 13465 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | tests/test_assets.py | 0 | test that metadata is still captured when a materializing task succeeds. |
| HIGH | tests/test_assets.py | 0 | test that metadata is still captured when a materializing task succeeds. |
| HIGH | tests/test_assets.py | 0 | test that metadata is still captured when a materializing task succeeds. |
| HIGH | tests/test_assets.py | 0 | test that metadata is still captured when a materializing task succeeds. |
| HIGH | tests/test_task_worker.py | 0 | tests for the sync_compatible to async_dispatch migration. |
| HIGH | tests/blocks/test_core.py | 0 | tests for the sync_compatible to async_dispatch migration. |
| HIGH | tests/concurrency/v1/test_concurrency_sync.py | 0 | tests for the sync_compatible to async_dispatch migration. |
| HIGH | tests/test_flows.py | 0 | from prefect import flow @flow def dog(): return "woof!" |
| HIGH | tests/test_flows.py | 0 | from prefect import flow @flow def dog(): return "woof!" |
| HIGH | tests/test_flows.py | 0 | from prefect import flow @flow def dog(): return "woof!" |
| HIGH | tests/test_flow_engine.py | 0 | from prefect import flow @flow def dog(): return "woof!" |
| HIGH | tests/test_flow_engine.py | 0 | from prefect import flow @flow def dog(): return "woof!" |
| HIGH | tests/test_flows.py | 0 | regression test for https://github.com/prefecthq/prefect/issues/15380 |
| HIGH | tests/test_flows.py | 0 | regression test for https://github.com/prefecthq/prefect/issues/15380 |
| HIGH | tests/test_flows.py | 0 | regression test for https://github.com/prefecthq/prefect/issues/15380 |
| HIGH | tests/test_flows.py | 0 | regression test for https://github.com/prefecthq/prefect/issues/15380 |
| HIGH | tests/test_flows.py | 0 | \ from prefect import flow @flow def test_flow(): return 1 |
| HIGH | tests/test_flows.py | 0 | \ from prefect import flow @flow def test_flow(): return 1 |
| HIGH | tests/runner/test_storage.py | 0 | \ from prefect import flow @flow def test_flow(): return 1 |
| HIGH | tests/runner/test_runner.py | 0 | \ from prefect import flow @flow def test_flow(): return 1 |
| HIGH | tests/deployment/test_steps.py | 0 | \ from prefect import flow @flow def test_flow(): return 1 |
| HIGH | tests/deployment/test_steps.py | 0 | \ from prefect import flow @flow def test_flow(): return 1 |
| HIGH | tests/test_flows.py | 0 | from prefect import flow @flow def flow_function(name: str) -> str: return name |
| HIGH | tests/test_flows.py | 0 | from prefect import flow @flow def flow_function(name: str) -> str: return name |
| HIGH | tests/test_flows.py | 0 | from prefect import flow @flow def flow_function(name: str) -> str: return name |
| HIGH | tests/test_filesystems.py | 0 | add files and directories to a temporary directory. returns a tuple with the expected parent-level contents and the expe |
| HIGH | …c/integrations/prefect-github/tests/test_repository.py | 0 | add files and directories to a temporary directory. returns a tuple with the expected parent-level contents and the expe |
| HIGH | …integrations/prefect-gitlab/tests/test_repositories.py | 0 | add files and directories to a temporary directory. returns a tuple with the expected parent-level contents and the expe |
| HIGH | …ntegrations/prefect-bitbucket/tests/test_repository.py | 0 | add files and directories to a temporary directory. returns a tuple with the expected parent-level contents and the expe |
| HIGH | tests/test_flow_engine.py | 0 | test for generator behavior including stopiteration |
| HIGH | tests/test_flow_engine.py | 0 | test for generator behavior including stopiteration |
| HIGH | tests/test_flow_engine.py | 0 | test for generator behavior including stopiteration |
| HIGH | tests/test_flow_engine.py | 0 | test for generator behavior including stopiteration |
| HIGH | tests/test_task_engine.py | 0 | test for generator behavior including stopiteration |
| HIGH | tests/test_task_engine.py | 0 | test for generator behavior including stopiteration |
| HIGH | tests/test_task_engine.py | 0 | test for generator behavior including stopiteration |
| HIGH | tests/test_task_engine.py | 0 | test for generator behavior including stopiteration |
| HIGH | tests/test_flow_engine.py | 0 | test that a generator can retry and will re-emit its events |
| HIGH | tests/test_flow_engine.py | 0 | test that a generator can retry and will re-emit its events |
| HIGH | tests/test_task_engine.py | 0 | test that a generator can retry and will re-emit its events |
| HIGH | tests/test_task_engine.py | 0 | test that a generator can retry and will re-emit its events |
| HIGH | tests/test_flow_engine.py | 0 | test that a generator doesn't retry for normal generator exceptions like stopiteration |
| HIGH | tests/test_flow_engine.py | 0 | test that a generator doesn't retry for normal generator exceptions like stopiteration |
| HIGH | tests/test_task_engine.py | 0 | test that a generator doesn't retry for normal generator exceptions like stopiteration |
| HIGH | tests/test_task_engine.py | 0 | test that a generator doesn't retry for normal generator exceptions like stopiteration |
| HIGH | tests/test_tasks.py | 0 | by default, task transactions are lazy committed and therefore inner tasks do not persist data (i.e., create a cache) un |
| HIGH | tests/test_tasks.py | 0 | by default, task transactions are lazy committed and therefore inner tasks do not persist data (i.e., create a cache) un |
| HIGH | tests/test_tasks.py | 0 | by default, task transactions are lazy committed and therefore inner tasks do not persist data (i.e., create a cache) un |
| HIGH | tests/test_settings.py | 0 | active = "foo" [profiles.foo] prefect_client_retry_extra_codes = "420,500" |
| HIGH | tests/test_settings.py | 0 | active = "foo" [profiles.foo] prefect_client_retry_extra_codes = "420,500" |
| HIGH | tests/test_settings.py | 0 | active = "foo" [profiles.foo] prefect_client_retry_extra_codes = "420,500" |
| HIGH | tests/test_settings.py | 0 | active = "foo" [profiles.foo] prefect_client_retry_extra_codes = "420,500" |
| HIGH | tests/test_settings.py | 0 | active = "foo" [profiles.foo] prefect_client_retry_extra_codes = "420,500" |
| HIGH | tests/_experimental/bundles/test_zip_extractor.py | 0 | create a zip with the given files. keys are paths, values are content. |
| HIGH | tests/_experimental/bundles/test_zip_extractor.py | 0 | create a zip with the given files. keys are paths, values are content. |
| HIGH | tests/_experimental/bundles/test_zip_extractor.py | 0 | create a zip with the given files. keys are paths, values are content. |
| HIGH | tests/_experimental/bundles/test_zip_extractor.py | 0 | create a zip with the given files. keys are paths, values are content. |
| HIGH | tests/runner/test_runner.py | 0 | \ from time import sleep from prefect import flow from prefect.logging.loggers import flow_run_logger def on_cancellatio |
| HIGH | tests/runner/test_runner.py | 0 | \ from time import sleep from prefect import flow from prefect.logging.loggers import flow_run_logger def on_cancellatio |
| HIGH | tests/runner/test_runner.py | 0 | \ from time import sleep from prefect import flow from prefect.logging.loggers import flow_run_logger def on_cancellatio |
| 269 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | plans/2026-01-06-custom-deployment-sdks.md | 621 | Get a deployment by name. Args: name: The deployment name in "flow-name/deployment-name" format. |
| HIGH | tests/_internal/compatibility/test_migration.py | 10 | Import an object from a dotted path. This function dynamically imports an object (such as a class, function, o |
| HIGH | tests/runner/test_storage.py | 121 | Format and return the full git URL with GitLab credentials embedded. Handles both personal access toke |
| HIGH | …integrations/prefect-dbt/prefect_dbt/core/_manifest.py | 345 | Get the resolved dependencies for a specific node. Args: node_id: The unique_id of the node |
| HIGH | …integrations/prefect-dbt/prefect_dbt/core/_manifest.py | 365 | Compute execution waves using Kahn's algorithm. Each wave contains nodes that can be executed in parallel. |
| HIGH | …integrations/prefect-dbt/prefect_dbt/core/_manifest.py | 548 | Resolve dbt selectors to a set of node unique_ids. Uses `dbt ls` under the hood, so all of dbt's selector syntax is |
| HIGH | …grations/prefect-dbt/prefect_dbt/core/_orchestrator.py | 1104 | Execute a dbt build wave-by-wave or per-node. Pipeline: 1. Parse the manifest 2. Optionally res |
| HIGH | …ntegrations/prefect-dbt/prefect_dbt/core/_freshness.py | 64 | Convert a dbt freshness period specification to a timedelta. Args: count: Number of periods period: |
| HIGH | …ntegrations/prefect-dbt/prefect_dbt/core/_artifacts.py | 224 | Create a Prefect `Asset` from a `DbtNode`. Args: node: The DbtNode to create an asset for. Must have a |
| HIGH | …integrations/prefect-dbt/prefect_dbt/core/_executor.py | 691 | Execute a wave of nodes using `dbt build`. Uses `dbt build` to handle mixed resource types in a single invocati |
| HIGH | …c/integrations/prefect-dbt/prefect_dbt/cli/commands.py | 167 | Task for running dbt commands. If no profiles.yml file is found or if overwrite_profiles flag is set to True, |
| HIGH | …tegrations/prefect-dbt/prefect_dbt/cli/configs/base.py | 176 | Create a TargetConfigs instance from a dbt profiles.yml file. Args: profile_name: Name of |
| HIGH | src/integrations/prefect-dbt/prefect_dbt/cloud/jobs.py | 382 | A task to trigger a dbt Cloud job run. Args: dbt_cloud_credentials: Credentials for authenticating wit |
| HIGH | src/integrations/prefect-dbt/prefect_dbt/cloud/jobs.py | 531 | Flow that triggers a job run and waits for the triggered run to complete. Args: dbt_cloud_credentials: |
| HIGH | src/integrations/prefect-dbt/prefect_dbt/cloud/jobs.py | 836 | Flow that retrys a subset of dbt Cloud job run, filtered by select statuses, and waits for the triggered retry |
| HIGH | src/integrations/prefect-dbt/prefect_dbt/cloud/utils.py | 62 | Task that calls a specified endpoint in the dbt Cloud administrative API. Use this task if a prebuilt one is no |
| HIGH | …ntegrations/prefect-dbt/prefect_dbt/cloud/_executor.py | 179 | Poll a run until it reaches a terminal status. Args: run_id: dbt Cloud run ID to poll. Ret |
| HIGH | …ntegrations/prefect-dbt/prefect_dbt/cloud/_executor.py | 472 | Execute a wave of dbt nodes via an ephemeral dbt Cloud job. Uses `dbt build --select sel1 sel2 ...` to execute |
| HIGH | src/integrations/prefect-dbt/prefect_dbt/cloud/runs.py | 165 | A task to get an artifact generated for a completed run. The requested artifact is saved to a file in the curre |
| HIGH | src/integrations/prefect-dbt/prefect_dbt/cloud/runs.py | 256 | Waits for the given dbt Cloud job run to finish running. Args: run_id: The ID of the run to wait for. |
| HIGH | …/integrations/prefect-gcp/prefect_gcp/cloud_storage.py | 1505 | Creates a bucket (async version). Args: location: The location of the bucket. |
| HIGH | …/integrations/prefect-gcp/prefect_gcp/cloud_storage.py | 1536 | Creates a bucket. Args: location: The location of the bucket. **create_kwargs: |
| HIGH | …/integrations/prefect-gcp/prefect_gcp/cloud_storage.py | 1603 | Lists all blobs in the bucket that are in a folder (async version). Folders are not included in the out |
| HIGH | …/integrations/prefect-gcp/prefect_gcp/cloud_storage.py | 1640 | Lists all blobs in the bucket that are in a folder. Folders are not included in the output. Ar |
| HIGH | …/integrations/prefect-gcp/prefect_gcp/cloud_storage.py | 1668 | Lists all folders and subfolders in the bucket (async version). Args: folder: List all fol |
| HIGH | …/integrations/prefect-gcp/prefect_gcp/cloud_storage.py | 1713 | Lists all folders and subfolders in the bucket. Args: folder: List all folders and subfold |
| HIGH | …/integrations/prefect-gcp/prefect_gcp/cloud_storage.py | 1751 | Downloads an object from the object storage service to a path (async version). Args: from_ |
| HIGH | …/integrations/prefect-gcp/prefect_gcp/cloud_storage.py | 1801 | Downloads an object from the object storage service to a path. Args: from_path: The path t |
| HIGH | …/integrations/prefect-gcp/prefect_gcp/cloud_storage.py | 1842 | Downloads an object from the object storage service to a file-like object (async version), which can be |
| HIGH | …/integrations/prefect-gcp/prefect_gcp/cloud_storage.py | 1897 | Downloads an object from the object storage service to a file-like object, which can be a BytesIO objec |
| HIGH | …/integrations/prefect-gcp/prefect_gcp/cloud_storage.py | 1945 | Downloads objects *within* a folder (excluding the folder itself) from the object storage service to a |
| HIGH | …/integrations/prefect-gcp/prefect_gcp/cloud_storage.py | 2013 | Downloads objects *within* a folder (excluding the folder itself) from the object storage service to a |
| HIGH | …/integrations/prefect-gcp/prefect_gcp/cloud_storage.py | 2067 | Uploads an object from a path to the object storage service (async version). Args: from_pa |
| HIGH | …/integrations/prefect-gcp/prefect_gcp/cloud_storage.py | 2113 | Uploads an object from a path to the object storage service. Args: from_path: The path to |
| HIGH | …/integrations/prefect-gcp/prefect_gcp/cloud_storage.py | 2149 | Uploads an object to the object storage service from a file-like object (async version), which can be a |
| HIGH | …/integrations/prefect-gcp/prefect_gcp/cloud_storage.py | 2204 | Uploads an object to the object storage service from a file-like object, which can be a BytesIO object |
| HIGH | …/integrations/prefect-gcp/prefect_gcp/cloud_storage.py | 2255 | Uploads files *within* a folder (excluding the folder itself) to the object storage service folder (asy |
| HIGH | …/integrations/prefect-gcp/prefect_gcp/cloud_storage.py | 2315 | Uploads files *within* a folder (excluding the folder itself) to the object storage service folder. |
| HIGH | src/integrations/prefect-gcp/prefect_gcp/credentials.py | 243 | Helper method to dynamically get a client type. Args: client_type: The name of the client |
| HIGH | src/integrations/prefect-gcp/prefect_gcp/credentials.py | 267 | Gets an authenticated Cloud Storage client. Args: project: Name of the project to use; ove |
| HIGH | src/integrations/prefect-gcp/prefect_gcp/credentials.py | 328 | Gets an authenticated BigQuery client. Args: project: Name of the project to use; override |
| HIGH | src/integrations/prefect-gcp/prefect_gcp/bigquery.py | 1093 | Fetch a single result from the database (async version). Repeated calls using the same inputs to *any* |
| HIGH | src/integrations/prefect-gcp/prefect_gcp/bigquery.py | 1152 | Fetch a single result from the database. Repeated calls using the same inputs to *any* of the fetch me |
| HIGH | src/integrations/prefect-gcp/prefect_gcp/bigquery.py | 1210 | Fetch a limited number of results from the database (async version). Repeated calls using the same inp |
| HIGH | src/integrations/prefect-gcp/prefect_gcp/bigquery.py | 1277 | Fetch a limited number of results from the database. Repeated calls using the same inputs to *any* of |
| HIGH | src/integrations/prefect-gcp/prefect_gcp/bigquery.py | 1341 | Fetch all results from the database (async version). Repeated calls using the same inputs to *any* of |
| HIGH | src/integrations/prefect-gcp/prefect_gcp/bigquery.py | 1398 | Fetch all results from the database. Repeated calls using the same inputs to *any* of the fetch method |
| HIGH | src/integrations/prefect-gcp/prefect_gcp/bigquery.py | 1453 | Executes an operation on the database (async version). This method is intended to be used for operation |
| HIGH | src/integrations/prefect-gcp/prefect_gcp/bigquery.py | 1501 | Executes an operation on the database. This method is intended to be used for operations that do not re |
| HIGH | src/integrations/prefect-gcp/prefect_gcp/bigquery.py | 1546 | Executes many operations on the database (async version). This method is intended to be used for operat |
| HIGH | src/integrations/prefect-gcp/prefect_gcp/bigquery.py | 1598 | Executes many operations on the database. This method is intended to be used for operations that do not |
| HIGH | …ations/prefect-gcp/prefect_gcp/workers/cloud_run_v2.py | 997 | Check whether a transient submission error actually started an execution. Submitting a Cloud Run job i |
| HIGH | …ations/prefect-gcp/prefect_gcp/workers/cloud_run_v2.py | 1250 | Update execution status until it is no longer running. Args: cr_client (Resource): The bas |
| HIGH | …egrations/prefect-gcp/prefect_gcp/deployments/steps.py | 41 | Pushes the contents of the current working directory to a GCS bucket, excluding files and folders specified in |
| HIGH | …egrations/prefect-gcp/prefect_gcp/deployments/steps.py | 145 | Pulls the contents of a project from an GCS bucket to the current working directory. Args: bucket: The |
| HIGH | …refect-kubernetes/prefect_kubernetes/custom_objects.py | 139 | Task for reading a namespaced Kubernetes custom object. Args: kubernetes_credentials: `KubernetesCredential |
| HIGH | …refect-kubernetes/prefect_kubernetes/custom_objects.py | 313 | Task for patching a namespaced custom resource. Args: kubernetes_credentials: KubernetesCredentials block |
| HIGH | …refect-kubernetes/prefect_kubernetes/custom_objects.py | 386 | Task for replacing a namespaced custom resource. Args: kubernetes_credentials: KubernetesCredentials block |
| HIGH | …s/prefect-kubernetes/prefect_kubernetes/credentials.py | 205 | Utility function for configuring a generic Kubernetes client. It will attempt to connect to a Kubernete |
| HIGH | …grations/prefect-kubernetes/prefect_kubernetes/jobs.py | 174 | Task for patching a namespaced Kubernetes job. Args: kubernetes_credentials: KubernetesCredentials block |
| 248 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | plans/completed/2026-02-18-runner-refactor.md | 560 | # ── Internal attributes — tests access these directly ──────────────────────── |
| MEDIUM | plans/completed/2026-02-18-runner-refactor.md | 576 | # ── Private method passthroughs ────────────────────────────────────────────── |
| MEDIUM | tests/test_assets.py | 286 | # ============================================================================= |
| MEDIUM | tests/test_assets.py | 288 | # ============================================================================= |
| MEDIUM | tests/test_assets.py | 389 | # ============================================================================= |
| MEDIUM | tests/test_assets.py | 391 | # ============================================================================= |
| MEDIUM | tests/test_assets.py | 450 | # ============================================================================= |
| MEDIUM | tests/test_assets.py | 452 | # ============================================================================= |
| MEDIUM | tests/test_assets.py | 1045 | # ============================================================================= |
| MEDIUM | tests/test_assets.py | 1047 | # ============================================================================= |
| MEDIUM | tests/test_assets.py | 1230 | # ============================================================================= |
| MEDIUM | tests/test_assets.py | 1232 | # ============================================================================= |
| MEDIUM | tests/test_assets.py | 1312 | # ============================================================================= |
| MEDIUM | tests/test_assets.py | 1314 | # ============================================================================= |
| MEDIUM | tests/test_assets.py | 1412 | # ============================================================================= |
| MEDIUM | tests/test_assets.py | 1414 | # ============================================================================= |
| MEDIUM | tests/test_assets.py | 52 | # ============================================================================= |
| MEDIUM | tests/test_assets.py | 54 | # ============================================================================= |
| MEDIUM | tests/test_assets.py | 678 | # ============================================================================= |
| MEDIUM | tests/test_assets.py | 680 | # ============================================================================= |
| MEDIUM | tests/test_subprocess_logging.py | 15 | # --------------------------------------------------------------------------- |
| MEDIUM | tests/test_subprocess_logging.py | 17 | # --------------------------------------------------------------------------- |
| MEDIUM | tests/test_subprocess_logging.py | 44 | # --------------------------------------------------------------------------- |
| MEDIUM | tests/test_subprocess_logging.py | 46 | # --------------------------------------------------------------------------- |
| MEDIUM | tests/runner/test__scheduled_run_poller.py | 92 | # --------------------------------------------------------------------------- |
| MEDIUM | tests/runner/test__scheduled_run_poller.py | 94 | # --------------------------------------------------------------------------- |
| MEDIUM | tests/runner/test__scheduled_run_poller.py | 136 | # --------------------------------------------------------------------------- |
| MEDIUM | tests/runner/test__scheduled_run_poller.py | 138 | # --------------------------------------------------------------------------- |
| MEDIUM | tests/runner/test__scheduled_run_poller.py | 197 | # --------------------------------------------------------------------------- |
| MEDIUM | tests/runner/test__scheduled_run_poller.py | 199 | # --------------------------------------------------------------------------- |
| MEDIUM | tests/runner/test__scheduled_run_poller.py | 268 | # --------------------------------------------------------------------------- |
| MEDIUM | tests/runner/test__scheduled_run_poller.py | 270 | # --------------------------------------------------------------------------- |
| MEDIUM | tests/runner/test__scheduled_run_poller.py | 297 | # --------------------------------------------------------------------------- |
| MEDIUM | tests/runner/test__scheduled_run_poller.py | 299 | # --------------------------------------------------------------------------- |
| MEDIUM | tests/runner/test__scheduled_run_poller.py | 525 | # --------------------------------------------------------------------------- |
| MEDIUM | tests/runner/test__scheduled_run_poller.py | 527 | # --------------------------------------------------------------------------- |
| MEDIUM | tests/runner/test__scheduled_run_poller.py | 543 | # --------------------------------------------------------------------------- |
| MEDIUM | tests/runner/test__scheduled_run_poller.py | 545 | # --------------------------------------------------------------------------- |
| MEDIUM | tests/runner/test__scheduled_run_poller.py | 599 | # --------------------------------------------------------------------------- |
| MEDIUM | tests/runner/test__scheduled_run_poller.py | 601 | # --------------------------------------------------------------------------- |
| MEDIUM | tests/runner/test__scheduled_run_poller.py | 679 | # --------------------------------------------------------------------------- |
| MEDIUM | tests/runner/test__scheduled_run_poller.py | 681 | # --------------------------------------------------------------------------- |
| MEDIUM | tests/runner/test__scheduled_run_poller.py | 14 | # --------------------------------------------------------------------------- |
| MEDIUM | tests/runner/test__scheduled_run_poller.py | 16 | # --------------------------------------------------------------------------- |
| MEDIUM | tests/runner/test__flow_run_executor.py | 147 | # --------------------------------------------------------------------------- |
| MEDIUM | tests/runner/test__flow_run_executor.py | 149 | # --------------------------------------------------------------------------- |
| MEDIUM | tests/runner/test__flow_run_executor.py | 444 | # --------------------------------------------------------------------------- |
| MEDIUM | tests/runner/test__flow_run_executor.py | 446 | # --------------------------------------------------------------------------- |
| MEDIUM | tests/runner/test__flow_run_executor.py | 18 | # --------------------------------------------------------------------------- |
| MEDIUM | tests/runner/test__flow_run_executor.py | 20 | # --------------------------------------------------------------------------- |
| MEDIUM | tests/server/services/test_db_vacuum.py | 157 | # --------------------------------------------------------------------------- |
| MEDIUM | tests/server/services/test_db_vacuum.py | 159 | # --------------------------------------------------------------------------- |
| MEDIUM | tests/server/services/test_db_vacuum.py | 46 | # --------------------------------------------------------------------------- |
| MEDIUM | tests/server/services/test_db_vacuum.py | 48 | # --------------------------------------------------------------------------- |
| MEDIUM | tests/events/server/triggers/test_flow_run_slas.py | 810 | # ------------------------------------------------------ |
| MEDIUM | …ents/server/actions/test_pausing_resuming_work_pool.py | 324 | # ----------------------------------------------------- |
| MEDIUM | …ents/server/actions/test_pausing_resuming_work_pool.py | 330 | # ----------------------------------------------------- |
| MEDIUM | examples/run_api_sourced_etl.py | 67 | # --------------------------------------------------------------------------- |
| MEDIUM | examples/run_api_sourced_etl.py | 69 | # --------------------------------------------------------------------------- |
| MEDIUM | examples/run_api_sourced_etl.py | 83 | # --------------------------------------------------------------------------- |
| 313 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | hatch_build.py | 1 | |
| LOW | tools/write_build_info.py | 1 | |
| LOW | tests/conftest.py | 50 | |
| LOW | tests/conftest.py | 95 | |
| LOW | tests/conftest.py | 96 | |
| LOW | tests/conftest.py | 98 | |
| LOW | tests/conftest.py | 99 | |
| LOW | tests/conftest.py | 100 | |
| LOW | tests/conftest.py | 101 | |
| LOW | tests/conftest.py | 102 | |
| LOW | tests/conftest.py | 103 | |
| LOW | tests/conftest.py | 104 | |
| LOW | tests/conftest.py | 105 | |
| LOW | tests/conftest.py | 106 | |
| LOW | tests/conftest.py | 107 | |
| LOW | tests/conftest.py | 108 | |
| LOW | tests/test_infrastructure_bound_flow.py | 1 | |
| LOW | tests/test_logging.py | 1 | |
| LOW | tests/test_logging.py | 89 | |
| LOW | tests/test_logging.py | 89 | |
| LOW | tests/test_logging.py | 90 | |
| LOW | tests/test_filesystems.py | 696 | |
| LOW | tests/test_versioning.py | 1 | |
| LOW | tests/test_transactions.py | 1 | |
| LOW | tests/test_flows_compat.py | 1 | |
| LOW | tests/test_ui_build_validation.py | 1 | |
| LOW | tests/test_background_tasks.py | 26 | |
| LOW | tests/test_types.py | 1 | |
| LOW | tests/test_settings.py | 1 | |
| LOW | tests/blocks/conftest.py | 8 | |
| LOW | tests/_internal/test_control_listener.py | 3 | |
| LOW | tests/docker/test_docker_image.py | 1 | |
| LOW | tests/docker/test_buildx.py | 3 | |
| LOW | tests/_experimental/bundles/test_zip_extractor.py | 8 | |
| LOW | tests/_experimental/bundles/test_zip_builder.py | 8 | |
| LOW | …experimental/bundles/test_include_files_integration.py | 8 | |
| LOW | …ts/_experimental/bundles/test_dependency_validation.py | 3 | |
| LOW | tests/_experimental/bundles/test_ignore_filter.py | 16 | |
| LOW | tests/_experimental/bundles/test_execute.py | 1 | |
| LOW | tests/_experimental/bundles/test_file_collector.py | 12 | |
| LOW | tests/_experimental/bundles/test_path_resolver.py | 9 | |
| LOW | tests/plugins/test_plugins.py | 5 | |
| LOW | tests/plugins/test_compat.py | 10 | |
| LOW | tests/runner/test__scheduled_run_poller.py | 1 | |
| LOW | tests/runner/test__deployment_registry.py | 1 | |
| LOW | tests/runner/test__workspace_resolver.py | 1 | |
| LOW | tests/runner/test__starter_bundle.py | 1 | |
| LOW | tests/runner/test__workspace_starter.py | 1 | |
| LOW | tests/runner/test__flow_run_executor.py | 1 | |
| LOW | tests/runner/test__cancellation_manager.py | 1 | |
| LOW | tests/runner/test__process_manager.py | 1 | |
| LOW | tests/runner/test__state_proposer.py | 1 | |
| LOW | tests/runner/test_runner.py | 1 | |
| LOW | tests/runner/test__control_channel.py | 3 | |
| LOW | tests/runner/test_control_channel_e2e.py | 19 | |
| LOW | tests/runner/test__starter_engine.py | 1 | |
| LOW | tests/runner/test__event_emitter.py | 1 | |
| LOW | tests/runner/test__flow_resolver.py | 1 | |
| LOW | tests/runner/test__hook_runner.py | 1 | |
| LOW | tests/runner/test__starter_direct.py | 1 | |
| 1195 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | tests/conftest.py | 387 | # Create the storage path now, fixing an obscure bug where it can be created by |
| MEDIUM | tests/conftest.py | 457 | # Create an empty temporary database for use in the tests |
| MEDIUM | tests/test_infrastructure_bound_flow.py | 913 | # Create an initial flow run using the client directly |
| MEDIUM | tests/test_infrastructure_bound_flow.py | 961 | # Create an initial flow run using the client directly |
| MEDIUM | tests/test_filesystems.py | 314 | # Create a real file |
| MEDIUM | tests/test_filesystems.py | 318 | # Create a symlink within the source directory |
| MEDIUM | tests/test_filesystems.py | 322 | # Create a destination directory |
| MEDIUM | tests/test_filesystems.py | 345 | # Create a real file |
| MEDIUM | tests/test_filesystems.py | 349 | # Create a symlink within the source directory |
| MEDIUM | tests/test_filesystems.py | 353 | # Create a destination directory |
| MEDIUM | tests/test_futures.py | 89 | # Create a slow future first, then fast ones |
| MEDIUM | tests/test_futures.py | 661 | # Create a new future instance (simulating getting the future from delay()) |
| MEDIUM | tests/test_artifacts.py | 998 | # Create an artifact first |
| MEDIUM | tests/test_artifacts.py | 1017 | # Create an artifact first |
| MEDIUM | tests/test_transactions.py | 723 | # Create a result store with explicit NullFileSystem for metadata_storage |
| MEDIUM | tests/test_transactions.py | 825 | # Create a result store with explicit NullFileSystem for metadata_storage |
| MEDIUM | tests/test_cache_policies.py | 222 | # Create a compound policy with multiple Inputs policies |
| MEDIUM | tests/test_flow_engine.py | 5139 | # Create a flow run with a deployment |
| MEDIUM | tests/test_context.py | 438 | # Create a deployment and avoid red squiggles |
| MEDIUM | tests/test_context.py | 448 | # Create a flow run from the deployment |
| MEDIUM | tests/test_context.py | 453 | # Define a wrapper function to ensure environment variables and settings propagate because |
| MEDIUM | tests/test_context.py | 465 | # Create a new settings object to pick up the new environment variables |
| MEDIUM | tests/test_settings.py | 2865 | # Create a new settings instance to pick up the env var |
| MEDIUM | tests/test_settings.py | 2986 | # Create a new settings instance that will load from the profiles file |
| MEDIUM | tests/_internal/concurrency/test_services.py | 342 | # Creating an instance from an async context is not always safe when sending an |
| MEDIUM | tests/_internal/pydantic/test_validated_func.py | 428 | # Define a test module namespace that simulates using future annotations |
| MEDIUM | tests/_internal/pydantic/test_validated_func.py | 431 | # Create a model in that namespace |
| MEDIUM | tests/_internal/pydantic/test_validated_func.py | 445 | # Define a function with the model as a parameter using string annotation |
| MEDIUM | tests/_internal/pydantic/test_validated_func.py | 456 | # Create an instance of the model |
| MEDIUM | tests/_internal/analytics/conftest.py | 80 | # Create a fresh Prefect home in tmp_path |
| MEDIUM | tests/_experimental/bundles/test_zip_extractor.py | 765 | # Create a valid zip |
| MEDIUM | tests/_experimental/bundles/test_bundles.py | 102 | # Create a mock flow run |
| MEDIUM | tests/_experimental/bundles/test_bundles.py | 291 | # Create a flow with include_files |
| MEDIUM | tests/_experimental/bundles/test_zip_builder.py | 387 | # Create a file that will produce a zip >= 50MB |
| MEDIUM | …experimental/bundles/test_include_files_integration.py | 421 | # Create a sidecar zip |
| MEDIUM | …experimental/bundles/test_include_files_integration.py | 444 | # Create a helper script that copies files preserving directory structure |
| MEDIUM | …experimental/bundles/test_include_files_integration.py | 690 | # Create a real flow file |
| MEDIUM | …experimental/bundles/test_include_files_integration.py | 720 | # Create a flow and set include_files (as @ecs decorator would) |
| MEDIUM | tests/_experimental/bundles/test_file_collector.py | 1137 | # Create a file slightly over threshold |
| MEDIUM | tests/_experimental/bundles/test_path_resolver.py | 715 | # Create a test file |
| MEDIUM | tests/_experimental/bundles/test_path_resolver.py | 729 | # Create a file outside the base directory |
| MEDIUM | tests/_experimental/bundles/test_path_resolver.py | 685 | # Create a test file |
| MEDIUM | tests/_experimental/bundles/test_path_resolver.py | 809 | # Create a subdirectory |
| MEDIUM | tests/_experimental/bundles/test_path_resolver.py | 822 | # Create a dotfile |
| MEDIUM | tests/_experimental/bundles/test_path_resolver.py | 895 | # Create the parent structure to ensure file exists |
| MEDIUM | tests/input/test_run_input.py | 757 | # Create a model with initial data |
| MEDIUM | tests/plugins/test_plugins.py | 272 | # Create a mock module with a function-based plugin |
| MEDIUM | tests/plugins/test_plugins.py | 296 | # Create a mock module with an async function-based plugin |
| MEDIUM | tests/runner/test_runner.py | 1195 | # Create a mock flow run |
| MEDIUM | tests/runner/test_runner.py | 2760 | # Create an instance and add its flow method |
| MEDIUM | tests/runner/test_runner.py | 2787 | # Create an instance and add its flow method with cancellation hook |
| MEDIUM | tests/runner/test_runner.py | 2831 | # Create an instance and add its flow method with crashed hook |
| MEDIUM | tests/locking/test_filelock.py | 74 | # Create a stale lock with a dead PID |
| MEDIUM | tests/locking/test_filelock.py | 167 | # Create a lock held by "this process" so it won't be detected |
| MEDIUM | tests/server/models/test_flow_runs.py | 310 | # Create a flow run with no labels |
| MEDIUM | tests/server/models/test_flow_runs.py | 269 | # Create a flow run with initial labels |
| MEDIUM | tests/server/models/test_csrf_token.py | 46 | # Create a token |
| MEDIUM | tests/server/models/test_deployments.py | 272 | # Create a global concurrency limit first |
| MEDIUM | tests/server/models/test_deployments.py | 1114 | # Create a deployment with custom labels |
| MEDIUM | tests/server/models/test_deployments.py | 1159 | # Create a deployment with custom labels and schedules |
| 271 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tests/test_logging.py | 1778 | except Exception: |
| LOW | tests/test_logging.py | 1855 | except Exception as exc: # noqa |
| LOW | tests/test_flows.py | 2124 | except Exception: |
| LOW | tests/test_exceptions.py | 55 | except Exception as exc: |
| LOW | tests/test_exceptions.py | 65 | except Exception as exc: |
| MEDIUM | tests/test_exceptions.py | 52 | def test_pickle_roundtrip_single_error(self): |
| MEDIUM | tests/test_exceptions.py | 62 | def test_pickle_roundtrip_two_errors(self): |
| MEDIUM | tests/test_tasks.py | 1429 | def test_flow(): |
| LOW | tests/test_tasks.py | 3936 | except Exception: |
| LOW | tests/test_tasks.py | 5496 | except Exception: |
| LOW | tests/_internal/test_control_listener.py | 46 | except Exception: |
| LOW | tests/_internal/test_control_listener.py | 66 | except Exception: |
| LOW | tests/_internal/compatibility/test_migration.py | 57 | except Exception as exc: |
| LOW | tests/utilities/test_importtools.py | 471 | except Exception as e: |
| LOW | tests/utilities/test_pydantic.py | 40 | except Exception as exc: |
| LOW | tests/utilities/test_dockerutils.py | 17 | except Exception: |
| LOW | tests/utilities/test_urls.py | 484 | except Exception: |
| LOW | tests/events/client/test_events_client.py | 445 | except Exception as e: |
| LOW | integration-tests/test_task_worker.py | 73 | except Exception as e: |
| LOW | integration-tests/test_flow_suspension.py | 59 | except Exception as exc: |
| LOW | integration-tests/test_nested_cancellation.py | 99 | except Exception as exc: # pragma: no cover - diagnostic path |
| LOW | integration-tests/test_client_context_lifespan.py | 112 | except Exception as e: |
| MEDIUM | integration-tests/test_client_context_lifespan.py | 113 | print(f"Error entering client many times {e}") |
| MEDIUM | integration-tests/test_client_context_lifespan.py | 35 | def lifespan(app): |
| LOW | integration-tests/test_load_flows_concurrently.py | 37 | except Exception as e: |
| LOW | integration-tests/test_worker.py | 35 | except Exception: |
| LOW | integration-tests/test_schedule_statefulness.py | 49 | except Exception as e: |
| MEDIUM | integration-tests/test_schedule_statefulness.py | 50 | print(f"Error checking schedules: {e}") |
| LOW | integration-tests/test_runner_resilience.py | 76 | except Exception as e: |
| LOW | integration-tests/test_runner_resilience.py | 83 | except Exception as e: |
| LOW | ui-v2/e2e/helpers/run_flows.py | 172 | except Exception as e: |
| MEDIUM | ui-v2/e2e/helpers/run_flows.py | 173 | print(f"Error running scenario '{args.scenario}': {e}", file=sys.stderr) |
| LOW | examples/ai_database_cleanup_with_approval.py | 255 | except Exception as e: |
| LOW | scripts/backfill_release_notes.py | 321 | except Exception: |
| LOW | scripts/run-integration-flows.py | 47 | except Exception as e: |
| MEDIUM | scripts/run-integration-flows.py | 48 | print(f"Error running {script}: {e}") |
| LOW | scripts/all_links_should_be_ok.py | 38 | except Exception: |
| LOW | scripts/all_links_should_be_ok.py | 48 | except Exception as exc: |
| LOW | scripts/wait-for-server.py | 53 | except Exception as exc: |
| MEDIUM | scripts/prepare_release_notes.py | 89 | print(f"Error generating release notes: {e}") |
| LOW | scripts/prepare_release_notes.py | 339 | except Exception: |
| MEDIUM | scripts/prepare_release_notes.py | 452 | print(f"Error: Invalid version format '{version}'. Expected format: X.Y.Z") |
| MEDIUM | scripts/prepare_release_notes.py | 459 | print(f"Error: Could not parse version '{version}'") |
| MEDIUM | scripts/prepare_integration_release_notes.py | 58 | print(f"Error running command {' '.join(cmd)}: {e}", file=sys.stderr) |
| LOW | scripts/prepare_integration_release_notes.py | 122 | except Exception: |
| MEDIUM | scripts/prepare_integration_release_notes.py | 354 | print(f"Error: Package '{args.package}' not found.", file=sys.stderr) |
| LOW | scripts/test_unc_paths.py | 64 | except Exception as e: |
| MEDIUM | scripts/test_unc_paths.py | 65 | print(f"Error: {type(e).__name__}: {e}") |
| LOW | scripts/generate_mintlify_openapi_docs.py | 113 | except Exception: |
| MEDIUM | scripts/generate_api_ref.py | 35 | print(f"Error generating API reference: {result.stderr}", file=sys.stderr) |
| LOW | …integrations/prefect-dbt/prefect_dbt/core/_manifest.py | 619 | except Exception: |
| LOW | …grations/prefect-dbt/prefect_dbt/core/_orchestrator.py | 743 | except Exception as e: |
| LOW | …grations/prefect-dbt/prefect_dbt/core/_orchestrator.py | 1286 | except Exception as exc: |
| LOW | …grations/prefect-dbt/prefect_dbt/core/_orchestrator.py | 1364 | except Exception: |
| LOW | …grations/prefect-dbt/prefect_dbt/core/_orchestrator.py | 1392 | except Exception as exc: |
| LOW | …grations/prefect-dbt/prefect_dbt/core/_orchestrator.py | 1578 | except Exception: |
| LOW | …grations/prefect-dbt/prefect_dbt/core/_orchestrator.py | 1593 | except Exception as exc: |
| LOW | …grations/prefect-dbt/prefect_dbt/core/_orchestrator.py | 1942 | except Exception: |
| LOW | …grations/prefect-dbt/prefect_dbt/core/_orchestrator.py | 1975 | except Exception: |
| LOW | …grations/prefect-dbt/prefect_dbt/core/_orchestrator.py | 2189 | except Exception as exc: |
| 469 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tests/conftest.py | 571 | |
| LOW | tests/test_flows.py | 2070 | |
| LOW | tests/test_settings.py | 2646 | |
| LOW | tests/_internal/concurrency/test_cancellation.py | 364 | |
| LOW | tests/_internal/concurrency/test_cancellation.py | 395 | |
| LOW | tests/_internal/concurrency/test_cancellation.py | 416 | |
| LOW | tests/_internal/concurrency/test_cancellation.py | 456 | |
| LOW | tests/_internal/concurrency/test_cancellation.py | 500 | |
| LOW | tests/_internal/concurrency/test_cancellation.py | 539 | |
| LOW | tests/_internal/concurrency/test_cancellation.py | 561 | |
| LOW | tests/_internal/concurrency/test_cancellation.py | 566 | |
| LOW | tests/experimental/test_bundles.py | 854 | |
| LOW | tests/plugins/test_plugins.py | 479 | |
| LOW | tests/plugins/test_plugins.py | 562 | |
| LOW | tests/runner/test_control_channel_e2e.py | 63 | |
| LOW | tests/runner/test__starter_engine.py | 196 | |
| LOW | tests/runner/test__starter_engine.py | 399 | |
| LOW | tests/runner/test__starter_engine.py | 433 | |
| LOW | tests/server/models/test_filters.py | 51 | |
| LOW | …sts/server/orchestration/api/test_flow_run_graph_v2.py | 41 | |
| LOW | tests/server/orchestration/api/test_workers.py | 3775 | |
| LOW | tests/server/orchestration/api/ui/test_task_runs.py | 181 | |
| LOW | tests/cli/test_start_server.py | 49 | |
| LOW | tests/cli/test_deploy.py | 2728 | |
| LOW | tests/cli/test_deploy.py | 2762 | |
| LOW | tests/cli/test_transfer.py | 30 | |
| LOW | tests/concurrency/test_leases.py | 108 | |
| LOW | tests/workers/test_cleanup.py | 886 | |
| LOW | tests/events/server/triggers/test_flow_run_slas.py | 761 | |
| LOW | …/events/server/models/test_automation_notifications.py | 120 | |
| LOW | …s/events/server/actions/test_jinja_templated_action.py | 652 | |
| LOW | …s/events/server/actions/test_jinja_templated_action.py | 661 | |
| LOW | tests/infrastructure/provisioners/test_cloud_run.py | 241 | |
| LOW | tests/infrastructure/provisioners/test_cloud_run.py | 242 | |
| LOW | tests/infrastructure/provisioners/test_cloud_run_v2.py | 211 | |
| LOW | tests/infrastructure/provisioners/test_cloud_run_v2.py | 212 | |
| LOW | tests/infrastructure/provisioners/test_ecs.py | 971 | |
| LOW | tests/infrastructure/provisioners/test_ecs.py | 986 | |
| LOW | scripts/generate_settings_ref.py | 13 | |
| LOW | scripts/generate_settings_ref.py | 55 | |
| LOW | scripts/backfill_release_notes.py | 102 | |
| LOW | scripts/prepare_release_notes.py | 104 | |
| LOW | scripts/prepare_release_notes.py | 345 | |
| LOW | scripts/prepare_release_notes.py | 399 | |
| LOW | scripts/prepare_integration_release_notes.py | 167 | |
| LOW | scripts/prepare_integration_release_notes.py | 361 | |
| LOW | scripts/generate_cli_docs.py | 97 | |
| LOW | scripts/generate_example_pages.py | 70 | |
| LOW | scripts/verify_test_selection.py | 38 | |
| LOW | scripts/generate_mintlify_openapi_docs.py | 39 | |
| LOW | scripts/pyright_diff.py | 60 | |
| LOW | …integrations/prefect-dbt/prefect_dbt/core/_manifest.py | 361 | |
| LOW | …grations/prefect-dbt/prefect_dbt/core/_orchestrator.py | 795 | |
| LOW | …grations/prefect-dbt/prefect_dbt/core/_orchestrator.py | 880 | |
| LOW | …grations/prefect-dbt/prefect_dbt/core/_orchestrator.py | 1013 | |
| LOW | …grations/prefect-dbt/prefect_dbt/core/_orchestrator.py | 1095 | |
| LOW | …grations/prefect-dbt/prefect_dbt/core/_orchestrator.py | 1345 | |
| LOW | …grations/prefect-dbt/prefect_dbt/core/_orchestrator.py | 1596 | |
| LOW | …grations/prefect-dbt/prefect_dbt/core/_orchestrator.py | 1711 | |
| LOW | …grations/prefect-dbt/prefect_dbt/core/_orchestrator.py | 1807 | |
| 361 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| CRITICAL | tests/cli/test_api_command.py | 165 | assert route.calls.last.request.headers.get("X-Custom") == "value" |
| CRITICAL | tests/cli/test_api_command.py | 190 | assert route.calls.last.request.headers.get("X-Custom-1") == "value1" |
| CRITICAL | tests/cli/test_api_command.py | 191 | assert route.calls.last.request.headers.get("X-Custom-2") == "value2" |
| CRITICAL | src/integrations/prefect-dbt/tests/cloud/test_jobs.py | 243 | request_body = json.loads(respx_mock.calls.last.request.content.decode()) |
| CRITICAL | src/integrations/prefect-dbt/tests/cloud/test_jobs.py | 1623 | request_body = json.loads(respx_mock.calls.last.request.content.decode()) |
| CRITICAL | src/integrations/prefect-dbt/tests/cloud/test_jobs.py | 1650 | request_body = json.loads(respx_mock.calls.last.request.content.decode()) |
| CRITICAL | …owflake/prefect_snowflake/experimental/workers/spcs.py | 23 | from snowflake.core.exceptions import NotFoundError |
| CRITICAL | …efect-snowflake/tests/experimental/test_spcs_worker.py | 1819 | from snowflake.core.exceptions import NotFoundError |
| CRITICAL | …efect-snowflake/tests/experimental/test_spcs_worker.py | 534 | from snowflake.core.exceptions import NotFoundError |
| CRITICAL | …efect-snowflake/tests/experimental/test_spcs_worker.py | 1188 | from snowflake.core.exceptions import NotFoundError |
| CRITICAL | src/integrations/prefect-docker/tests/test_images.py | 34 | client.__enter__.return_value.images.pull.assert_called_once_with( |
| CRITICAL | src/integrations/prefect-docker/tests/test_images.py | 56 | client.__enter__.return_value.images.pull.assert_called_once_with( |
| CRITICAL | src/integrations/prefect-docker/tests/test_images.py | 70 | client.__enter__.return_value.images.pull.assert_called_once_with(**pull_kwargs) |
| CRITICAL | src/integrations/prefect-docker/tests/test_worker.py | 1584 | mock_docker_client.containers.get.return_value.stop.assert_called_once_with( |
| CRITICAL | …c/integrations/prefect-docker/tests/test_containers.py | 32 | client.__enter__.return_value.containers.create.assert_called_once_with( |
| CRITICAL | …c/integrations/prefect-docker/tests/test_containers.py | 47 | client.__enter__.return_value.containers.get.assert_called_once_with("42") |
| CRITICAL | …c/integrations/prefect-docker/tests/test_containers.py | 60 | client.__enter__.return_value.containers.get.assert_called_once_with("42") |
| CRITICAL | …c/integrations/prefect-docker/tests/test_containers.py | 73 | client.__enter__.return_value.containers.get.assert_called_once_with("42") |
| CRITICAL | …c/integrations/prefect-docker/tests/test_containers.py | 86 | client.__enter__.return_value.containers.get.assert_called_once_with("42") |
| CRITICAL | …rations/prefect-docker/tests/deployments/test_steps.py | 197 | mock_docker_client.images.get.return_value.tag.assert_has_calls( |
| CRITICAL | …rations/prefect-docker/tests/deployments/test_steps.py | 206 | mock_docker_client.images.get.return_value.tag.assert_called_once_with( |
| CRITICAL | …rations/prefect-docker/tests/deployments/test_steps.py | 654 | mock_docker_client.images.get.return_value.tag.assert_called_once_with( |
| CRITICAL | …rations/prefect-docker/tests/deployments/test_steps.py | 676 | mock_docker_client.images.get.return_value.tag.assert_called_once_with( |
| CRITICAL | src/integrations/prefect-azure/tests/conftest.py | 4 | from azure.core.exceptions import ResourceExistsError |
| CRITICAL | src/integrations/prefect-azure/tests/test_aci_worker.py | 12 | from azure.core.exceptions import HttpResponseError, ResourceNotFoundError |
| CRITICAL | …/integrations/prefect-azure/tests/test_blob_storage.py | 6 | from azure.core.exceptions import ResourceExistsError |
| CRITICAL | …efect-azure/tests/experimental/bundles/test_execute.py | 8 | from azure.core.exceptions import ResourceNotFoundError |
| CRITICAL | …refect-azure/tests/experimental/bundles/test_upload.py | 5 | from azure.core.exceptions import ResourceExistsError |
| CRITICAL | …tegrations/prefect-azure/prefect_azure/blob_storage.py | 8 | from azure.core.exceptions import ResourceNotFoundError |
| CRITICAL | …fect-azure/prefect_azure/workers/container_instance.py | 81 | from azure.core.exceptions import HttpResponseError, ResourceNotFoundError |
| CRITICAL | src/prefect/tasks.py | 186 | context.task.fn.__code__.co_code.hex(), |
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | tests/docker/test_docker_image.py | 71 | image.push() |
| HIGH | tests/docker/test_docker_image.py | 88 | image.push() # should not raise |
| HIGH | tests/docker/test_docker_image.py | 217 | image.push() |
| HIGH | tests/docker/test_docker_image.py | 233 | image.push() |
| HIGH | tests/docker/test_docker_image.py | 197 | image.push() |
| HIGH | tests/server/database/test_migrations.py | 815 | "INSERT INTO flow_run_notification_policy (is_active, state_names, tags, message_template, block_doc |
| HIGH | tests/server/orchestration/api/test_work_queues.py | 1608 | when they entered the PENDING state, not start_time (which is null).""" |
| HIGH | tests/_sdk/test_schema_converter_unions.py | 7 | """Test conversion of nullable (anyOf with null) types.""" |
| HIGH | tests/_sdk/test_schema_converter_unions.py | 153 | e.g., anyOf: [ {"type":"array","items":{"anyOf":[str, int]}}, null ] |
| HIGH | tests/deployment/test_steps.py | 1530 | "echo first && echo second", |
| HIGH | src/integrations/prefect-github/prefect_github/user.py | 2356 | privacy: If non-null, filters repositories |
| HIGH | src/integrations/prefect-github/prefect_github/user.py | 2360 | is_locked: If non-null, filters repositories |
| HIGH | src/integrations/prefect-github/prefect_github/user.py | 2364 | contribution_types: If non-null, include |
| HIGH | src/integrations/prefect-github/prefect_github/user.py | 532 | privacy: If non-null, filters repositories according to privacy. |
| HIGH | src/integrations/prefect-github/prefect_github/user.py | 543 | is_locked: If non-null, filters repositories according to |
| HIGH | src/integrations/prefect-github/prefect_github/user.py | 1143 | privacy: If non-null, filters repositories according to |
| HIGH | src/integrations/prefect-github/prefect_github/user.py | 1155 | is_locked: If non-null, filters repositories according to |
| HIGH | src/integrations/prefect-github/prefect_github/user.py | 1163 | is_fork: If non-null, filters repositories according to |
| HIGH | …c/integrations/prefect-github/prefect_github/viewer.py | 2108 | privacy: If non-null, filters repositories |
| HIGH | …c/integrations/prefect-github/prefect_github/viewer.py | 2112 | is_locked: If non-null, filters repositories |
| HIGH | …c/integrations/prefect-github/prefect_github/viewer.py | 2116 | contribution_types: If non-null, include |
| HIGH | …c/integrations/prefect-github/prefect_github/viewer.py | 476 | privacy: If non-null, filters repositories according to privacy. |
| HIGH | …c/integrations/prefect-github/prefect_github/viewer.py | 487 | is_locked: If non-null, filters repositories according to |
| HIGH | …c/integrations/prefect-github/prefect_github/viewer.py | 1021 | privacy: If non-null, filters repositories according to |
| HIGH | …c/integrations/prefect-github/prefect_github/viewer.py | 1033 | is_locked: If non-null, filters repositories according to |
| HIGH | …c/integrations/prefect-github/prefect_github/viewer.py | 1041 | is_fork: If non-null, filters repositories according to |
| HIGH | …grations/prefect-github/prefect_github/organization.py | 128 | privacy: If non-null, filters teams according to privacy. |
| HIGH | …grations/prefect-github/prefect_github/organization.py | 129 | role: If non-null, filters teams according to whether the viewer |
| HIGH | …grations/prefect-github/prefect_github/organization.py | 131 | query: If non-null, filters teams with query on team name and team |
| HIGH | …grations/prefect-github/prefect_github/organization.py | 944 | privacy: If non-null, filters repositories according to |
| HIGH | …grations/prefect-github/prefect_github/organization.py | 956 | is_locked: If non-null, filters repositories according to |
| HIGH | …grations/prefect-github/prefect_github/organization.py | 964 | is_fork: If non-null, filters repositories according to |
| HIGH | …tegrations/prefect-github/prefect_github/repository.py | 436 | privacy: If non-null, filters repositories according to privacy. |
| HIGH | …tegrations/prefect-github/prefect_github/repository.py | 447 | is_locked: If non-null, filters repositories according to whether |
| HIGH | …ions/prefect-github/prefect_github/repository_owner.py | 133 | privacy: If non-null, filters repositories according to |
| HIGH | …ions/prefect-github/prefect_github/repository_owner.py | 145 | is_locked: If non-null, filters repositories according to |
| HIGH | …ions/prefect-github/prefect_github/repository_owner.py | 153 | is_fork: If non-null, filters repositories according to |
| HIGH | …c/integrations/prefect-dask/tests/test_task_runners.py | 392 | assert result.equals(pd.Series([3, 6], index=["x", "y"])) |
| HIGH | …ons/prefect-docker/prefect_docker/deployments/steps.py | 532 | client.api.push( |
| HIGH | …ons/prefect-docker/prefect_docker/deployments/steps.py | 538 | client.api.push( |
| HIGH | …grations/prefect-aws/prefect_aws/workers/ecs_worker.py | 325 | "the task when it is launching. If this value is not null, it will " |
| HIGH | …grations/prefect-aws/prefect_aws/workers/ecs_worker.py | 546 | "not null, it will override the value in the task definition. This value " |
| HIGH | …grations/prefect-aws/prefect_aws/workers/ecs_worker.py | 607 | "the task when it is launching. If this value is not null, it will " |
| HIGH | …grations/prefect-aws/prefect_aws/workers/ecs_worker.py | 619 | "If using the 'awsvpc' network mode and this field is null, your default " |
| HIGH | …tions/prefect-aws/prefect_aws/observers/diagnostics.py | 70 | # --- Container exit code analysis (non-zero or null) ------------------- |
| HIGH | src/integrations/prefect-shell/tests/test_commands.py | 127 | command="echo $HOME && echo $TEST_VAR", |
| HIGH | src/prefect/serializers.py | 298 | level: If not null, the level of compression to pass to `compress`. |
| HIGH | src/prefect/states.py | 463 | If the state result is null, a wrapper exception will be returned with the state |
| HIGH | src/prefect/states.py | 549 | If the state result is null, a wrapper exception will be returned with the state |
| HIGH | src/prefect/_internal/buildx.py | 211 | python_on_whales.docker.image.push(full_name) |
| HIGH | src/prefect/docker/docker_image.py | 162 | events = client.api.push( |
| HIGH | src/prefect/server/database/query_components.py | 235 | # if null, no limit will be applied |
| HIGH | …04_09_125712_cc510aec4689_automation_event_follower.py | 48 | "(\n (\n lower(hex(randomblob(4)))\n || '-'\n || lower(hex(randomblob(2)))\n |
| HIGH | …4_03_13_111316_bacc60edce16_create_csrf_token_toble.py | 35 | "(\n (\n lower(hex(randomblob(4)))\n || '-'\n || lower(hex(randomblob(2)))\n |
| HIGH | …e/2024_04_03_111618_07ed05dfd4ec_automations_models.py | 58 | "(\n (\n lower(hex(randomblob(4)))\n || '-'\n || lower(hex(randomblob(2)))\n |
| HIGH | …e/2024_04_03_111618_07ed05dfd4ec_automations_models.py | 120 | "(\n (\n lower(hex(randomblob(4)))\n || '-'\n || lower(hex(randomblob(2)))\n |
| HIGH | …e/2024_04_03_111618_07ed05dfd4ec_automations_models.py | 175 | "(\n (\n lower(hex(randomblob(4)))\n || '-'\n || lower(hex(randomblob(2)))\n |
| HIGH | …e/2024_04_03_111618_07ed05dfd4ec_automations_models.py | 246 | "(\n (\n lower(hex(randomblob(4)))\n || '-'\n || lower(hex(randomblob(2)))\n |
| HIGH | …e/2024_04_10_104304_824e9edafa60_adds_events_tables.py | 37 | "(\n (\n lower(hex(randomblob(4)))\n || '-'\n || lower(hex(randomblob(2)))\n |
| HIGH | …e/2024_04_10_104304_824e9edafa60_adds_events_tables.py | 111 | "(\n (\n lower(hex(randomblob(4)))\n || '-'\n || lower(hex(randomblob(2)))\n |
| 3 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tests/conftest.py | 337 | # Set PREFECT_HOME to a temporary directory to avoid clobbering |
| LOW | tests/test_flow_engine.py | 4874 | # Set heartbeat_frequency to enable heartbeats |
| LOW | tests/test_flow_engine.py | 4939 | # Set heartbeat_frequency to None (disabled) |
| LOW | tests/test_flow_engine.py | 4967 | # Set heartbeat_frequency to None (disabled) |
| LOW | tests/server/orchestration/api/test_bulk_operations.py | 392 | # Set state to cancelled |
| LOW | tests/server/orchestration/api/test_flow_runs.py | 354 | # Set limit to 50 bytes; even a small payload should fail |
| LOW | tests/server/orchestration/api/test_deployments.py | 3789 | # Set work_queue to None by removing the work_queue relationship |
| LOW | tests/server/services/test_foreman.py | 462 | # Set inactivity_heartbeat_multiple to 0 to immediately mark worker as offline |
| LOW | tests/cli/test_deploy.py | 3699 | # Check if the deployment was created correctly |
| LOW | tests/cli/test_deploy.py | 3709 | # Check if the second deployment was not created |
| LOW | tests/cli/test_deploy.py | 3464 | # Check if deployments were created correctly |
| LOW | tests/cli/test_deploy.py | 3641 | # Check if the two deployments were created correctly |
| LOW | tests/cli/test_deploy.py | 3656 | # Check if the third deployment was not created |
| LOW | tests/cli/test_deploy.py | 3762 | # Check if deployments were created correctly and without the provided CLI options |
| LOW | tests/cli/test_deploy.py | 4034 | # Check if the deployment was created correctly |
| LOW | tests/cli/test_deploy.py | 4134 | # Check if the deployment was created correctly |
| LOW | tests/cli/test_deploy.py | 4195 | # Check if the deployment was created correctly |
| LOW | tests/cli/test_deploy.py | 4275 | # Check if the deployment was created correctly |
| LOW | tests/cli/test_deploy.py | 4366 | # Check if the deployments were not created |
| LOW | tests/cli/test_deploy.py | 4443 | # Check if the deployment was created correctly |
| LOW | tests/cli/test_deploy.py | 4570 | # Check if the deployment was created correctly |
| LOW | tests/cli/test_deploy.py | 4707 | # Check if the deployment was created correctly |
| LOW | tests/cli/test_deploy.py | 4754 | # Check if the deployments were created correctly |
| LOW | tests/cli/test_deploy.py | 6552 | # Check if deployments were created correctly |
| LOW | tests/utilities/test_hashing.py | 59 | # Check if the hash is stable |
| LOW | …/events/server/models/test_automation_notifications.py | 58 | # Check if we're using PostgreSQL |
| LOW | …infrastructure/provisioners/test_container_instance.py | 1326 | None, # Assign identity to registry |
| LOW | …infrastructure/provisioners/test_container_instance.py | 1634 | None, # Assign identity to registry |
| LOW | …infrastructure/provisioners/test_container_instance.py | 1973 | None, # Assign identity to registry |
| LOW | …infrastructure/provisioners/test_container_instance.py | 2322 | None, # Assign identity to registry |
| LOW | tests/infrastructure/provisioners/test_modal.py | 104 | # Check if the block document exists and has expected values |
| LOW | tests/infrastructure/provisioners/test_modal.py | 112 | # Check if the base job template was updated |
| LOW | tests/infrastructure/provisioners/test_modal.py | 149 | # Check if the base job template was updated |
| LOW | tests/infrastructure/provisioners/test_modal.py | 190 | # Check if the block document exists and has expected values |
| LOW | tests/infrastructure/provisioners/test_modal.py | 198 | # Check if the base job template was updated |
| LOW | tests/infrastructure/provisioners/test_coiled.py | 101 | # Check if the block document exists and has expected values |
| LOW | tests/infrastructure/provisioners/test_coiled.py | 108 | # Check if the base job template was updated |
| LOW | tests/infrastructure/provisioners/test_coiled.py | 131 | # Check if the base job template was updated |
| LOW | tests/infrastructure/provisioners/test_coiled.py | 170 | # Check if the block document exists and has expected values |
| LOW | tests/infrastructure/provisioners/test_coiled.py | 177 | # Check if the base job template was updated |
| LOW | tests/infrastructure/provisioners/test_ecs.py | 85 | # Check if provisioning is needed |
| LOW | tests/infrastructure/provisioners/test_ecs.py | 224 | # Check if the IAM user exists |
| LOW | tests/infrastructure/provisioners/test_ecs.py | 119 | # Check if the IAM policy exists |
| LOW | tests/infrastructure/provisioners/test_ecs.py | 330 | # Check if the block document exists |
| LOW | load_testing/run-server.sh | 13 | # Check if container exists |
| LOW | examples/ai_data_analyst_with_pydantic_ai.py | 264 | # Display results |
| LOW | examples/ai_data_analyst_with_pydantic_ai.py | 279 | # Check if OpenAI API key is set |
| LOW | scripts/backfill_release_notes.py | 223 | # Check if we need to add spacing |
| LOW | scripts/backfill_release_notes.py | 235 | # Check if we need to add spacing |
| LOW | scripts/prepare_release_notes.py | 231 | # Check if we need to add spacing |
| LOW | scripts/prepare_release_notes.py | 243 | # Check if we need to add spacing |
| LOW | scripts/prepare_integration_release_notes.py | 396 | # Check if file exists to determine if we need frontmatter |
| LOW | client/client_deploy.py | 21 | # Check if the smoke-test work pool exists |
| LOW | …grations/prefect-dbt/prefect_dbt/core/_orchestrator.py | 868 | # Check if any of the test's parents is node_id |
| LOW | src/integrations/prefect-dbt/prefect_dbt/core/runner.py | 912 | # Check if event has a message (cheap attribute access) |
| LOW | src/integrations/prefect-dbt/prefect_dbt/core/runner.py | 1247 | # Check if this is a valid dbt command |
| LOW | …t_kubernetes_integration_tests/test_crash_detection.py | 78 | # Check if we got at least the pending event - but only if we have events |
| LOW | …ions/prefect-kubernetes/prefect_kubernetes/observer.py | 193 | # Check if a corresponding event already exists. If so, we don't need to emit a new one. |
| LOW | …ions/prefect-kubernetes/prefect_kubernetes/observer.py | 707 | # Check if there are any other jobs with this flow run label |
| LOW | …ions/prefect-kubernetes/prefect_kubernetes/observer.py | 715 | # Check if any other job is completed or running |
| 69 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | …omations/automations-wizard/automation-wizard.test.tsx | 639 | // Step 1: Trigger |
| LOW | …omations/automations-wizard/automation-wizard.test.tsx | 645 | // Step 2: Actions |
| LOW | …omations/automations-wizard/automation-wizard.test.tsx | 655 | // Step 3: Details |
| LOW | examples/resume_flow_run_on_pr_merge.py | 26 | # ## Step 1: Create a Prefect webhook |
| LOW | examples/resume_flow_run_on_pr_merge.py | 51 | # ## Step 2: Configure GitHub webhook |
| LOW | examples/resume_flow_run_on_pr_merge.py | 61 | # ## Step 3: Create an automation |
| LOW | examples/atproto_dashboard_with_prefect_assets.py | 67 | # ### Step 1: Fetch Raw Data |
| LOW | examples/atproto_dashboard_with_prefect_assets.py | 88 | # ### Step 2: Process the Data |
| LOW | examples/atproto_dashboard_with_prefect_assets.py | 116 | # ### Step 3: Create Analytics |
| LOW | …ions/prefect-dbt/tests/core/test_orchestrator_cache.py | 1264 | # Step 1: full build — populate cache |
| LOW | …ions/prefect-dbt/tests/core/test_orchestrator_cache.py | 1267 | # Step 2: change root SQL |
| LOW | …ions/prefect-dbt/tests/core/test_orchestrator_cache.py | 1270 | # Step 3: selective run — only leaf |
| LOW | …ions/prefect-dbt/tests/core/test_orchestrator_cache.py | 1277 | # Step 4: full build — root/mid rebuild, leaf must NOT cache-hit |
| LOW | …ions/prefect-dbt/tests/core/test_orchestrator_cache.py | 1283 | # Step 1: all succeed |
| LOW | …ions/prefect-dbt/tests/core/test_orchestrator_cache.py | 1287 | # Step 3: leaf re-executes (cache miss — upstream key changed) |
| LOW | …ions/prefect-dbt/tests/core/test_orchestrator_cache.py | 1290 | # Step 4: root/mid re-execute (new file content); leaf must also |
| LOW | …ions/prefect-dbt/tests/core/test_orchestrator_cache.py | 1315 | # Step 1: change root SQL |
| LOW | …ions/prefect-dbt/tests/core/test_orchestrator_cache.py | 1318 | # Step 2: selective run — only leaf |
| LOW | …ions/prefect-dbt/tests/core/test_orchestrator_cache.py | 1325 | # Step 3: selective run — only root and mid (rebuild upstream) |
| LOW | …ions/prefect-dbt/tests/core/test_orchestrator_cache.py | 1332 | # Step 4: selective run — only leaf again |
| LOW | …ions/prefect-dbt/tests/core/test_orchestrator_cache.py | 1343 | # Step 2: leaf executes (cache miss) |
| LOW | …ions/prefect-dbt/tests/core/test_orchestrator_cache.py | 1345 | # Step 3: root and mid execute |
| LOW | …ions/prefect-dbt/tests/core/test_orchestrator_cache.py | 1348 | # Step 4: leaf must re-execute (NOT cache-hit from step 2) |
| LOW | …ions/prefect-dbt/tests/core/test_orchestrator_cache.py | 1409 | # Step 1: full build — populates execution state for all nodes |
| LOW | …ions/prefect-dbt/tests/core/test_orchestrator_cache.py | 1412 | # Step 2: change A's SQL |
| LOW | …ions/prefect-dbt/tests/core/test_orchestrator_cache.py | 1415 | # Step 3: selective run — only C |
| LOW | …ions/prefect-dbt/tests/core/test_orchestrator_cache.py | 1422 | # Step 4: selective run — only D |
| LOW | …ions/prefect-dbt/tests/core/test_orchestrator_cache.py | 1433 | # Step 1: all succeed |
| LOW | …ions/prefect-dbt/tests/core/test_orchestrator_cache.py | 1435 | # Step 3: C executes (salted upstream keys since A changed) |
| LOW | …ions/prefect-dbt/tests/core/test_orchestrator_cache.py | 1437 | # Step 4: D must re-execute, NOT cache-hit, because C was |
| LOW | …ions/prefect-dbt/tests/core/test_orchestrator_cache.py | 1515 | # Step 1: full build — all succeed, execution state populated |
| LOW | …ions/prefect-dbt/tests/core/test_orchestrator_cache.py | 1518 | # Step 2: change mid's SQL so the cache key changes, |
| LOW | …ntegrations/prefect-slack/prefect_slack/credentials.py | 107 | # failures. This is not available in older versions, so we need to check if the |
| LOW | …integrations/prefect-kubernetes/tests/test_observer.py | 877 | # Step 1: Pod is Pending (no issues yet) |
| LOW | …integrations/prefect-kubernetes/tests/test_observer.py | 911 | # Step 2: Pod is still Pending but now has ImagePullBackOff |
| LOW | …integrations/prefect-kubernetes/tests/test_observer.py | 982 | # Step 1: Pod is Pending and Unschedulable |
| LOW | …integrations/prefect-kubernetes/tests/test_observer.py | 1017 | # Step 2: Pod transitions to Running (problem resolved) |
| LOW | …integrations/prefect-kubernetes/tests/test_observer.py | 1072 | # Step 1: CrashLoopBackOff |
| LOW | …integrations/prefect-kubernetes/tests/test_observer.py | 1105 | # Step 2: Pod terminates with OOMKilled |
| LOW | src/integrations/prefect-redis/tests/test_ordering.py | 335 | # Step 1: Follower parks itself |
| LOW | src/integrations/prefect-redis/tests/test_ordering.py | 342 | # Step 2: Leader completes, claiming the follower |
| LOW | src/integrations/prefect-redis/tests/test_ordering.py | 350 | # Step 3: Simulate follower's double-check path |
| LOW | src/integrations/prefect-redis/tests/test_ordering.py | 362 | # Step 4: Verify event data is STILL available for the leader |
| LOW | src/prefect/runner/runner.py | 1644 | # Step 1: client |
| LOW | src/prefect/runner/runner.py | 1691 | # Step 4: Construct client-dependent services after client is started |
| LOW | src/prefect/runner/runner.py | 1742 | # Step 5: runs_task_group |
| LOW | src/prefect/runner/runner.py | 1797 | # Step 6: Enter observer context manager last |
| LOW | src/prefect/runner/_flow_run_executor.py | 132 | # Step 2: already-cancelled precheck |
| LOW | src/prefect/runner/_flow_run_executor.py | 164 | # Step 6: remove handle from process_manager |
| LOW | src/prefect/runner/_flow_run_executor.py | 168 | # Step 7: interpret exit code and propose terminal state |
| LOW | src/prefect/runner/_flow_run_executor.py | 184 | # Step 8: run crashed hooks |
| LOW | src/prefect/runner/_flow_run_executor.py | 247 | # Step 1: client |
| LOW | src/prefect/runner/_flow_run_executor.py | 267 | # Step 2: ProcessManager with observer add/remove callbacks |
| LOW | src/prefect/runner/_flow_run_executor.py | 278 | # Step 3: StateProposer, placeholder HookRunner, EventEmitter |
| LOW | src/prefect/runner/_flow_run_executor.py | 293 | # Step 4: CancellationManager |
| LOW | src/prefect/runner/_flow_run_executor.py | 303 | # Step 5: Observer enters LAST (starts websocket/polling) |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tests/conftest.py | 41 | # fires a `UserWarning: The NumPy module was reloaded`, which our |
| LOW | tests/events/server/triggers/test_flow_run_slas.py | 801 | |
| LOW | docs/.vale.ini | 21 | mdx = md |
| LOW | …ork-pool-page-header/work-pool-page-header.stories.tsx | 101 | }, |
| LOW | …ork-pool-page-header/work-pool-page-header.stories.tsx | 121 | // ...mockWorkPool, |
| LOW | ui-v2/src/hooks/use-debounce-callback.tsx | 61 | // type SearchProps { |
| LOW | ui-v2/src/hooks/use-debounce-callback.tsx | 81 | // /> |
| LOW | examples/hello_world.py | 1 | # --- |
| LOW | examples/hello_world.py | 61 | hello(name) |
| LOW | examples/hello_world.py | 81 | # For instance, change the greeting message in the `hello` function to a different message and run the flow again. |
| LOW | examples/hello_world.py | 101 | # |
| LOW | examples/ai_data_analyst_with_pydantic_ai.py | 1 | # --- |
| LOW | examples/ai_data_analyst_with_pydantic_ai.py | 21 | # 3. Uses Python tools to calculate statistics and detect anomalies |
| LOW | examples/ai_data_analyst_with_pydantic_ai.py | 281 | print("❌ Error: OPENAI_API_KEY environment variable not set") |
| LOW | examples/ai_data_analyst_with_pydantic_ai.py | 301 | # ```bash |
| LOW | examples/ai_data_analyst_with_pydantic_ai.py | 321 | # - All operations respect 60s timeout |
| LOW | examples/ai_data_analyst_with_pydantic_ai.py | 341 | # 4. Trigger a run from the UI (http://localhost:4200) or CLI |
| LOW | examples/run_api_sourced_etl.py | 1 | # --- |
| LOW | examples/run_api_sourced_etl.py | 21 | # In this article you will: |
| LOW | examples/run_api_sourced_etl.py | 41 | # |
| LOW | examples/run_api_sourced_etl.py | 141 | # ## Run it! |
| LOW | examples/run_api_sourced_etl.py | 161 | # 4. The CSV was written to disk and a preview printed locally (the flow's `log_prints=True` flag logs messages inside t |
| LOW | examples/run_dbt_with_prefect.py | 1 | # --- |
| LOW | examples/run_dbt_with_prefect.py | 21 | # > **Note**: This example uses **dbt Core** (the open-source CLI). For dbt Cloud integration, see the [dbt Cloud guide] |
| LOW | examples/run_dbt_with_prefect.py | 41 | # ### Running the example locally |
| LOW | examples/run_dbt_with_prefect.py | 261 | # |
| LOW | examples/run_dbt_with_prefect.py | 281 | # - **Event-Driven**: Automatic Prefect events for dbt node status changes enable advanced monitoring and alerting |
| LOW | examples/resume_flow_run_on_pr_merge.py | 1 | # --- |
| LOW | examples/resume_flow_run_on_pr_merge.py | 21 | # |
| LOW | examples/resume_flow_run_on_pr_merge.py | 41 | # } |
| LOW | examples/resume_flow_run_on_pr_merge.py | 61 | # ## Step 3: Create an automation |
| LOW | examples/resume_flow_run_on_pr_merge.py | 101 | if __name__ == "__main__": |
| LOW | examples/resume_flow_run_on_pr_merge.py | 121 | # 2. **Webhook transforms event**: The Jinja template extracts the flow run ID from the PR body and creates a Prefect ev |
| LOW | examples/atproto_dashboard_with_prefect_assets.py | 1 | # --- |
| LOW | examples/atproto_dashboard_with_prefect_assets.py | 21 | # * **`@materialize` decorator** – Transform functions into versioned, cacheable data assets |
| LOW | examples/atproto_dashboard_with_prefect_assets.py | 41 | # # Follow README for setup and configuration |
| LOW | examples/atproto_dashboard_with_prefect_assets.py | 181 | |
| LOW | examples/atproto_dashboard_with_prefect_assets.py | 201 | # 3. **Storage Integration** |
| LOW | examples/atproto_dashboard_with_prefect_assets.py | 221 | # - dbt transformations with DuckDB |
| LOW | examples/ai_database_cleanup_with_approval.py | 1 | # --- |
| LOW | examples/ai_database_cleanup_with_approval.py | 21 | # [github.com/zzstoatzz/prefect-mcp-server-demo](https://github.com/zzstoatzz/prefect-mcp-server-demo) |
| LOW | examples/simple_web_scraper.py | 1 | # --- |
| LOW | examples/simple_web_scraper.py | 21 | # |
| LOW | examples/simple_web_scraper.py | 121 | # 2. Applied retry logic to the network call – a flaky connection would auto-retry up to 3 times. |
| LOW | examples/per_worker_task_concurrency.py | 1 | # --- |
| LOW | examples/per_worker_task_concurrency.py | 21 | # ## Example: Image processing with ML inference |
| LOW | examples/per_worker_task_concurrency.py | 121 | |
| LOW | examples/per_worker_task_concurrency.py | 141 | # prefect work-pool create ml-pool --type process |
| LOW | examples/per_worker_task_concurrency.py | 161 | # |
| LOW | examples/per_worker_task_concurrency.py | 181 | # 1. **GCLs are server-coordinated** — The Prefect server tracks who holds what |
| LOW | scripts/wait-for-healthy-container.sh | 1 | #!/usr/bin/env bash |
| LOW | .github/workflows/codeql-analysis.yml | 21 | # │ ┌───────────── hour (0 - 23) |
| LOW | .github/workflows/codspeed-benchmarks.yaml | 61 | with: |
| LOW | …egrations/prefect-dbt/prefect_dbt/cloud/credentials.py | 141 | # "packageName": "tpch", |
| LOW | …integrations/prefect-dask/prefect_dask/task_runners.py | 21 | for number in range(highest_number): |
| LOW | …efect-aws/prefect_aws/experimental/bundles/__init__.py | 1 | # Eagerly import the legacy submodules so that |
| LOW | …c/integrations/prefect-ray/prefect_ray/task_runners.py | 21 | for number in range(highest_number): |
| LOW | …c/integrations/prefect-redis/prefect_redis/ordering.py | 41 | # How long we'll wait for an in-flight event to be processed for follower handling, |
| LOW | …c/integrations/prefect-redis/prefect_redis/ordering.py | 341 | |
| LOW | src/prefect/context.py | 481 | # Tracking for result from task runs and sub flows in this flow run for |
| 18 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | ui/package-lock.json | 6217 | "resolved": "https://registry.npmjs.org/robust-predicates/-/robust-predicates-3.0.2.tgz", |
| MEDIUM | ui/package-lock.json | 11551 | "resolved": "https://registry.npmjs.org/robust-predicates/-/robust-predicates-3.0.2.tgz", |
| MEDIUM | tests/testing/test_utilites.py | 156 | # Use test harness which starts background threads |
| MEDIUM | tests/testing/test_utilites.py | 173 | Regression test for issue #19342 - running the test harness multiple times |
| MEDIUM | tests/testing/test_utilites.py | 186 | # Run the test harness twice - the second run would fail with the bug |
| MEDIUM | tests/public/flows/test_flow_crashes.py | 267 | # this here, but we do not have robust testing utilities for deployed runs yet. |
| LOW | tests/events/client/test_events_subscriber.py | 98 | # The base subscriber for OSS will just use the API URL, which is set to a |
| LOW | tests/logging/test_logs_subscriber.py | 127 | # The base subscriber for OSS will just use the API URL, which is set to a |
| MEDIUM | ui-v2/src/routes/runs/index.tsx | 476 | // Use useQuery for paginated flow runs to leverage placeholderData: keepPreviousData |
| MEDIUM | ui-v2/src/routes/runs/index.tsx | 482 | // Use useQuery for paginated task runs to leverage placeholderData: keepPreviousData |
| MEDIUM | ui-v2/src/routes/runs/index.tsx | 487 | // Use useQuery for flow run history (scatter plot) to leverage placeholderData: keepPreviousData |
| MEDIUM | ui-v2/src/routes/flows/index.tsx | 110 | // Use useQuery for paginated flows to leverage placeholderData: keepPreviousData |
| MEDIUM | ui-v2/src/routes/flows/flow.$id.tsx | 335 | // Use useQuery for deployments to leverage placeholderData: keepPreviousData |
| MEDIUM | ui-v2/src/routes/flows/flow.$id.tsx | 360 | // Use useQuery for paginated flow runsto leverage placeholderData: keepPreviousData |
| MEDIUM | examples/run_dbt_with_prefect.py | 19 | # The result? Your analytics team gets reliable, observable data pipelines that leverage the strengths of both platforms |
| MEDIUM | src/integrations/prefect-dbt/tests/core/test_tracker.py | 491 | """Test a comprehensive workflow with multiple nodes and dependencies.""" |
| LOW | …grations/prefect-aws/prefect_aws/workers/ecs_worker.py | 1423 | # Ensure the key is removed entirely, not just set to None |
| LOW | src/integrations/prefect-azure/tests/test_aci_worker.py | 447 | # If no entrypoint is provided, just use the command |
| LOW | src/prefect/flow_engine.py | 2224 | # parameters, in that case just return the parameters as-is. |
| LOW | src/prefect/_internal/schemas/validators.py | 359 | # rrule would just create different garbage. The real validator |
| MEDIUM | src/prefect/_internal/concurrency/event_loop.py | 56 | # result of the call. We wrap the call with a future to facilitate retrieval. |
| MEDIUM | src/prefect/server/models/block_schemas.py | 658 | # ones first (and to facilitate getting the newest one with `limit=1`). |
| LOW | src/prefect/server/models/work_queues.py | 90 | # work pool was created. We can just return it. |
| LOW | src/prefect/_sdk/schema_converter.py | 93 | # Handle allOf (intersection - we just use the first one with useful info) |
| MEDIUM | src/prefect/_sdk/renderer.py | 435 | # Use importlib.resources.files() for robust package resource access |
| LOW | src/prefect/utilities/asyncutils/__init__.py | 402 | # In a sync context and there is no event loop; just create an event loop |
| LOW | src/prefect/utilities/templating/__init__.py | 174 | # If there are no values, we can just use the template |
| MEDIUM | src/prefect/testing/utilities.py | 170 | # it after the harness exits, then register the harness server under |
| LOW | src/prefect/bundles/_ignore_filter.py | 197 | # Can't make relative - just use name |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tests/cli/test_work_pool.py | 742 | "Hello world lorem ipsum", |
| LOW | tests/cli/test_work_pool.py | 750 | assert client_res.description == "Hello world lorem ipsum" |
| LOW | ui-v2/src/components/schemas/schema-form.test.tsx | 91 | name: { type: "string", default: "John Doe" }, |
| LOW | ui-v2/src/components/schemas/schema-form.test.tsx | 109 | expect(spy).toHaveBeenCalledWith({ name: "John Doe" }); |
| LOW | ui-v2/src/components/schemas/readme.md | 79 | By default, the form will use the `default` property to set the initial value of all fields when the form is rendered. I |
| LOW | ui-v2/src/components/schemas/readme.md | 85 | name: { type: "string", title: "Name", default: "John Doe" }, |
| LOW | …/src/components/schemas/stories/properties.stories.tsx | 80 | default: "John Doe", |
| LOW | …/src/components/schemas/stories/properties.stories.tsx | 588 | name: "John Doe", |
| LOW | …uns/flow-run-details-page/flow-run-details.stories.tsx | 25 | display_value: "John Doe", |
| LOW | …w-runs/flow-run-details-page/flow-run-details.test.tsx | 135 | display_value: "John Doe", |
| LOW | …w-runs/flow-run-details-page/flow-run-details.test.tsx | 145 | expect(screen.getByText("John Doe")).toBeInTheDocument(); |
| LOW | …c/integrations/prefect-gcp/tests/test_cloud_storage.py | 270 | "name": ["John Doe", "Jane Doe", "Johny", "Jane"], |
| LOW | …c/integrations/prefect-gcp/tests/test_cloud_storage.py | 270 | "name": ["John Doe", "Jane Doe", "Johny", "Jane"], |
| LOW | src/integrations/prefect-aws/tests/test_utilities.py | 44 | {"op": "add", "path": "/contact/address", "value": "123 Main St"}, |
| LOW | src/integrations/prefect-aws/prefect_aws/utilities.py | 89 | {"op": "add", "path": "/contact/address", "value": "123 Main St"}, |
| LOW | …grations/prefect-databricks/prefect_databricks/jobs.py | 164 | "base_parameters": {"name": "John Doe", "age": "35"}, |
| LOW | …grations/prefect-databricks/prefect_databricks/jobs.py | 663 | "name": "John Doe", |
| LOW | …grations/prefect-databricks/prefect_databricks/jobs.py | 1608 | "base_parameters": {"name": "John Doe", "age": "35"}, |
| LOW | …grations/prefect-databricks/prefect_databricks/jobs.py | 1845 | "name": "John Doe", |
| LOW | …rations/prefect-databricks/prefect_databricks/flows.py | 129 | "base_parameters": {"name": "John Doe", "age": "35"}, |
| LOW | …s/prefect-databricks/prefect_databricks/models/jobs.py | 862 | examples=[{"age": 35, "name": "John Doe"}], |
| LOW | …s/prefect-databricks/prefect_databricks/models/jobs.py | 2535 | examples=[{"age": 35, "name": "John Doe"}], |
| LOW | …s/prefect-databricks/prefect_databricks/models/jobs.py | 3913 | "base_parameters": {"age": "35", "name": "John Doe"}, |
| LOW | …s/prefect-databricks/prefect_databricks/models/jobs.py | 4342 | "base_parameters": {"age": "35", "name": "John Doe"}, |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tests/blocks/test_core.py | 1706 | def do_stuff(self, thing: str): |
| LOW | tests/_internal/compatibility/test_async_dispatch.py | 23 | def my_function() -> None: |
| LOW | tests/_internal/compatibility/test_async_dispatch.py | 36 | def my_function() -> None: |
| LOW | tests/_internal/compatibility/test_async_dispatch.py | 50 | def my_function() -> None: |
| LOW | tests/_internal/compatibility/test_async_dispatch.py | 73 | def my_method(cls) -> str: |
| LOW | tests/_internal/compatibility/test_async_dispatch.py | 90 | def my_method(cls) -> str: |
| LOW | tests/_internal/compatibility/test_async_dispatch.py | 106 | def my_function() -> None: |
| LOW | tests/_internal/compatibility/test_async_dispatch.py | 118 | def my_function() -> None: |
| LOW | tests/_internal/compatibility/test_async_dispatch.py | 234 | def my_function() -> str: |
| LOW | tests/_internal/compatibility/test_async_dispatch.py | 255 | def my_function() -> str: |
| LOW | tests/_internal/compatibility/test_async_dispatch.py | 276 | def my_function() -> str: |
| LOW | tests/_internal/compatibility/test_async_dispatch.py | 297 | def my_function() -> str: |
| LOW | tests/_internal/pydantic/test_validated_func.py | 506 | def process_data(model: MyModel, count: int = 0) -> dict: |
| LOW | tests/telemetry/test_run_telemetry.py | 52 | async def run_task(task, task_run_id, parameters, engine_type): |
| LOW | ui-v2/public/mockServiceWorker.js | 122 | async function handleRequest(event, requestId) { |
| LOW | examples/atproto_dashboard_with_prefect_assets.py | 97 | def process_data(raw_data: dict[str, Any]) -> dict[str, Any]: |
| LOW | …/integrations/prefect-dbt/prefect_dbt/core/_tracker.py | 145 | def run_task(): |
| LOW | src/prefect/task_engine.py | 1842 | def run_task( |
| LOW | src/prefect/task_engine.py | 1855 | def run_task( |
| LOW | src/prefect/task_engine.py | 1867 | def run_task( |
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | .github/workflows/agents-md-update.yml | 304 | This PR was generated by Claude Code analyzing the diff from the latest push to main and updating any stale AG |
| HIGH | .github/workflows/docs-update.yml | 151 | This PR was generated by Claude Code analyzing source code changes and updating any stale documentation. |
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | src/integrations/prefect-aws/README.md | 200 | -e PREFECT_API_KEY=your-api-key \ |