AI Slop Code RIsk Monitor

PrefectHQ/prefect

Prefect is a workflow orchestration framework for building resilient data pipelines in Python.

23.7 Elevated pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for PrefectHQ/prefect, a Python project with 24,002 GitHub stars. SynthScan examined 961,556 lines of code across 3916 source files, recording 19436 pattern matches distributed across 23 syntactic categories. The legacy adjusted pattern signal is 23.7 (Elevated pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

23.7
Adjusted Signal
23.7
Raw Pattern Score
100%
Time Factor
2026-10-10
Last Push
24.0K
Stars
Python
Language
961.6K
Lines of Code
3.9K
Files
19.4K
Pattern Hits
2026-10-12
Scan Date
0.24
HC Hit Rate

Risk Review · v3

Use each vector to guide manual verification of the underlying findings.

Cognitive Ownership Risk 56.9/100 · HIGH

Can maintainers explain intent, assumptions, and trade-offs? 16353 finding(s).

Hallucinated Dependency & Supply Chain Risk 9.1/100 · LOW

Are imports declared and package/API names verified? 1440 finding(s).

Agent Over-Engineering Ratio 59.4/100 · HIGH

Are wrappers, guards, and repeated structures necessary? 16474 finding(s).

PR Review Velocity Impact 74.1/100 · HIGH

Which changes need focused human review? 19436 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 31HIGH 913MEDIUM 841LOW 17651

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 19436 distinct pattern matches across 23 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Hyper-Verbose Identifiers14609 hits · 12304 pts
SeverityFileLineSnippetContext
LOWhatch_build.py27def should_validate_packaged_ui_index_files(root: str | Path) -> bool:CODE
LOWhatch_build.py38def validate_packaged_ui_index_files(root: str | Path) -> None:CODE
LOWui/src/types/automation.ts32export function isAutomationActionFormValues(value: AutomationFormValues): value is AutomationActionFormValues {CODE
LOWui/src/components/AutomationWizardStepTrigger.vue67 function updateTriggerFromJsonString(): AutomationTrigger {CODE
LOWui/src/services/apiStatus.ts12export function setupApiStatusInterceptor(axiosInstance: AxiosInstance): void {CODE
LOWplans/2026-01-12-deployment-crud-events.md140async def _deployment_related_resources(CODE
LOWplans/2026-01-12-deployment-crud-events.md165async def emit_deployment_created_event(CODE
LOWplans/2026-01-12-deployment-crud-events.md179async def emit_deployment_updated_event(CODE
LOWplans/2026-01-12-deployment-crud-events.md197async def emit_deployment_deleted_event(CODE
LOWplans/2025-01-31-per-node-dbt-orchestration.md386def compute_freshness_expiration(CODE
LOWplans/completed/2026-02-18-runner-refactor.md256 def propose_awaiting_retry_sync(self, flow_run: FlowRun) -> None: ...CODE
LOWplans/completed/2026-02-18-runner-refactor.md546 def reschedule_current_flow_runs(self) -> None: ... # sync — uses snapshot(), sync clientCODE
LOW⚡plans/completed/2026-02-18-runner-refactor.md583 async def _run_on_cancellation_hooks(self, flow_run: "FlowRun", state: "State") -> None: ...CODE
LOW⚡plans/completed/2026-02-18-runner-refactor.md592 async def _get_and_submit_flow_runs(self) -> None: ... # → _scheduled_run_poller._get_and_submCODE
LOW⚡plans/completed/2026-02-18-runner-refactor.md595 async def _mark_flow_run_as_cancelled(self, flow_run: "FlowRun", state_updates: "dict[str, Any] | None" = None) -> NCODE
LOW⚡plans/completed/2026-02-18-runner-refactor.md596 async def _handle_cancellation_observer_failure(self) -> None: ...CODE
LOWtests/conftest.py164def pytest_collection_modifyitems(CODE
LOWtests/conftest.py267async def restore_loop_after_each_test():CODE
LOWtests/conftest.py297def assert_lifespan_is_not_left_open():CODE
LOWtests/conftest.py425async def generate_test_database_connection_url(CODE
LOWtests/conftest.py507def test_database_connection_url(STRING
LOWtests/conftest.py542def reset_maintenance_backoffs():STRING
LOWtests/conftest.py631def leaves_no_extraneous_files():STRING
LOW⚡tests/test_serializers.py403 def test_does_not_allow_object_hook_collision(self):STRING
LOW⚡tests/test_serializers.py407 def test_does_not_allow_default_collision(self):STRING
LOW⚡tests/test_serializers.py411 def test_pydantic_generic_model_roundtrip(self):STRING
LOW⚡tests/test_serializers.py455 def test_exc_type_rejects_non_exception_class(self):STRING
LOW⚡tests/test_serializers.py461 def test_exc_type_allows_real_exception(self):STRING
LOW⚡tests/test_serializers.py468 def test_exc_type_raises_on_unimportable_class(self):STRING
LOW⚡tests/test_serializers.py474 def test_exc_type_raises_on_dotless_name(self):STRING
LOW⚡tests/test_serializers.py478 def test_class_path_handles_unimportable_class(self):STRING
LOW⚡tests/test_serializers.py484 def test_class_path_handles_dotless_name(self):STRING
LOWtests/test_serializers.py88 def restore_dispatch_registry(self):STRING
LOWtests/test_serializers.py98 def test_serializers_do_not_allow_extra_fields(self):STRING
LOWtests/test_serializers.py111 def test_serializers_can_be_created_by_dict(self):STRING
LOWtests/test_serializers.py127 def test_serializers_can_be_created_by_object(self):STRING
LOWtests/test_serializers.py143 def test_serializers_can_be_created_by_type_string(self):STRING
LOWtests/test_serializers.py165 def test_unknown_serializers_raise_validation_error(self):STRING
LOWtests/test_serializers.py184 def test_simple_roundtrip_with_builtin_pickle(self, data):STRING
LOWtests/test_serializers.py189 def test_picklelib_must_be_string(self):STRING
LOWtests/test_serializers.py206 def test_picklelib_must_implement_dumps(self, monkeypatch: pytest.MonkeyPatch):STRING
LOWtests/test_serializers.py216 def test_picklelib_must_implement_loads(self, monkeypatch: pytest.MonkeyPatch):STRING
LOWtests/test_serializers.py250 def test_simple_roundtrip_with_complex_bytes(self, data: Any):STRING
LOWtests/test_serializers.py263 def test_uses_alternative_json_library(self, monkeypatch: pytest.MonkeyPatch):STRING
LOWtests/test_serializers.py276 def test_json_serializer_does_not_consume_iobase_objects(self):STRING
LOWtests/test_serializers.py337 def test_allows_custom_encoder(self, monkeypatch: pytest.MonkeyPatch):STRING
LOWtests/test_serializers.py362 def test_allows_custom_decoder(self, monkeypatch: pytest.MonkeyPatch):STRING
LOWtests/test_serializers.py386 def test_allows_custom_kwargs(self, monkeypatch: pytest.MonkeyPatch):STRING
LOWtests/test_serializers.py437 def test_dataclass_generic_model_roundtrip(self):STRING
LOWtests/test_serializers.py497 def test_allows_stdlib_compression_libraries(self, lib):STRING
LOWtests/test_serializers.py502 def test_uses_alternative_compression_library(STRING
LOWtests/test_serializers.py515 def test_uses_given_serializer(self, monkeypatch: pytest.MonkeyPatch):STRING
LOWtests/test_infrastructure_bound_flow.py60 def mock_subprocess_check_call(self, monkeypatch: pytest.MonkeyPatch):CODE
LOWtests/test_infrastructure_bound_flow.py113 async def work_pool_without_default_result_storage(CODE
LOWtests/test_infrastructure_bound_flow.py145 async def work_pool_missing_storage_configuration(CODE
LOWtests/test_infrastructure_bound_flow.py160 def test_bind_flow_to_infrastructure(CODE
LOWtests/test_infrastructure_bound_flow.py178 def dragged_through_the_garden():CODE
LOWtests/test_infrastructure_bound_flow.py292 def test_bind_flow_to_infrastructure_normalizes_launcher(CODE
LOWtests/test_infrastructure_bound_flow.py311 def test_bind_flow_to_infrastructure_rejects_invalid_launcher_keys(CODE
LOWtests/test_infrastructure_bound_flow.py329 def test_bind_flow_to_infrastructure_rejects_empty_launcher_override(CODE
14549 more matches not shown…
Docstring Block Structure312 hits · 1540 pts
SeverityFileLineSnippetContext
HIGHplans/2026-01-06-custom-deployment-sdks.md621Get a deployment by name. Args: name: The deployment name in "flow-name/deployment-name" format. STRING
HIGHtests/_internal/compatibility/test_migration.py10 Import an object from a dotted path. This function dynamically imports an object (such as a class, function, oSTRING
HIGHtests/runner/test_storage.py125 Format and return the full git URL with GitLab credentials embedded. Handles both personal access tokeSTRING
HIGH…integrations/prefect-dbt/prefect_dbt/core/_manifest.py345Get the resolved dependencies for a specific node. Args: node_id: The unique_id of the node STRING
HIGH…integrations/prefect-dbt/prefect_dbt/core/_manifest.py365Compute execution waves using Kahn's algorithm. Each wave contains nodes that can be executed in parallel. STRING
HIGH…integrations/prefect-dbt/prefect_dbt/core/_manifest.py548Resolve dbt selectors to a set of node unique_ids. Uses `dbt ls` under the hood, so all of dbt's selector syntax isSTRING
HIGH…grations/prefect-dbt/prefect_dbt/core/_orchestrator.py1104Execute a dbt build wave-by-wave or per-node. Pipeline: 1. Parse the manifest 2. Optionally resSTRING
HIGH…ntegrations/prefect-dbt/prefect_dbt/core/_freshness.py64Convert a dbt freshness period specification to a timedelta. Args: count: Number of periods period:STRING
HIGH…ntegrations/prefect-dbt/prefect_dbt/core/_artifacts.py224Create a Prefect `Asset` from a `DbtNode`. Args: node: The DbtNode to create an asset for. Must have a STRING
HIGH…integrations/prefect-dbt/prefect_dbt/core/_executor.py701Execute a wave of nodes using `dbt build`. Uses `dbt build` to handle mixed resource types in a single invocatiSTRING
HIGH…c/integrations/prefect-dbt/prefect_dbt/cli/commands.py167 Task for running dbt commands. If no profiles.yml file is found or if overwrite_profiles flag is set to True, STRING
HIGH…tegrations/prefect-dbt/prefect_dbt/cli/configs/base.py176 Create a TargetConfigs instance from a dbt profiles.yml file. Args: profile_name: Name of STRING
HIGHsrc/integrations/prefect-dbt/prefect_dbt/cloud/jobs.py382 A task to trigger a dbt Cloud job run. Args: dbt_cloud_credentials: Credentials for authenticating witSTRING
HIGHsrc/integrations/prefect-dbt/prefect_dbt/cloud/jobs.py531 Flow that triggers a job run and waits for the triggered run to complete. Args: dbt_cloud_credentials:STRING
HIGHsrc/integrations/prefect-dbt/prefect_dbt/cloud/jobs.py836 Flow that retrys a subset of dbt Cloud job run, filtered by select statuses, and waits for the triggered retry STRING
HIGHsrc/integrations/prefect-dbt/prefect_dbt/cloud/utils.py62 Task that calls a specified endpoint in the dbt Cloud administrative API. Use this task if a prebuilt one is noSTRING
HIGH…ntegrations/prefect-dbt/prefect_dbt/cloud/_executor.py179Poll a run until it reaches a terminal status. Args: run_id: dbt Cloud run ID to poll. RetSTRING
HIGH…ntegrations/prefect-dbt/prefect_dbt/cloud/_executor.py472Execute a wave of dbt nodes via an ephemeral dbt Cloud job. Uses `dbt build --select sel1 sel2 ...` to execute STRING
HIGHsrc/integrations/prefect-dbt/prefect_dbt/cloud/runs.py164 A task to get an artifact generated for a completed run. The requested artifact is saved to a file in the curreSTRING
HIGHsrc/integrations/prefect-dbt/prefect_dbt/cloud/runs.py255 Waits for the given dbt Cloud job run to finish running. Args: run_id: The ID of the run to wait for. STRING
HIGH…/integrations/prefect-gcp/prefect_gcp/cloud_storage.py1505 Creates a bucket (async version). Args: location: The location of the bucket. STRING
HIGH…/integrations/prefect-gcp/prefect_gcp/cloud_storage.py1536 Creates a bucket. Args: location: The location of the bucket. **create_kwargs:STRING
HIGH…/integrations/prefect-gcp/prefect_gcp/cloud_storage.py1603 Lists all blobs in the bucket that are in a folder (async version). Folders are not included in the outSTRING
HIGH…/integrations/prefect-gcp/prefect_gcp/cloud_storage.py1640 Lists all blobs in the bucket that are in a folder. Folders are not included in the output. ArSTRING
HIGH…/integrations/prefect-gcp/prefect_gcp/cloud_storage.py1668 Lists all folders and subfolders in the bucket (async version). Args: folder: List all folSTRING
HIGH…/integrations/prefect-gcp/prefect_gcp/cloud_storage.py1713 Lists all folders and subfolders in the bucket. Args: folder: List all folders and subfoldSTRING
HIGH…/integrations/prefect-gcp/prefect_gcp/cloud_storage.py1751 Downloads an object from the object storage service to a path (async version). Args: from_STRING
HIGH…/integrations/prefect-gcp/prefect_gcp/cloud_storage.py1801 Downloads an object from the object storage service to a path. Args: from_path: The path tSTRING
HIGH…/integrations/prefect-gcp/prefect_gcp/cloud_storage.py1842 Downloads an object from the object storage service to a file-like object (async version), which can beSTRING
HIGH…/integrations/prefect-gcp/prefect_gcp/cloud_storage.py1897 Downloads an object from the object storage service to a file-like object, which can be a BytesIO objecSTRING
HIGH…/integrations/prefect-gcp/prefect_gcp/cloud_storage.py1945 Downloads objects *within* a folder (excluding the folder itself) from the object storage service to a STRING
HIGH…/integrations/prefect-gcp/prefect_gcp/cloud_storage.py2013 Downloads objects *within* a folder (excluding the folder itself) from the object storage service to a STRING
HIGH…/integrations/prefect-gcp/prefect_gcp/cloud_storage.py2067 Uploads an object from a path to the object storage service (async version). Args: from_paSTRING
HIGH…/integrations/prefect-gcp/prefect_gcp/cloud_storage.py2113 Uploads an object from a path to the object storage service. Args: from_path: The path to STRING
HIGH…/integrations/prefect-gcp/prefect_gcp/cloud_storage.py2149 Uploads an object to the object storage service from a file-like object (async version), which can be aSTRING
HIGH…/integrations/prefect-gcp/prefect_gcp/cloud_storage.py2204 Uploads an object to the object storage service from a file-like object, which can be a BytesIO object STRING
HIGH…/integrations/prefect-gcp/prefect_gcp/cloud_storage.py2255 Uploads files *within* a folder (excluding the folder itself) to the object storage service folder (asySTRING
HIGH…/integrations/prefect-gcp/prefect_gcp/cloud_storage.py2315 Uploads files *within* a folder (excluding the folder itself) to the object storage service folder. STRING
HIGHsrc/integrations/prefect-gcp/prefect_gcp/credentials.py243 Helper method to dynamically get a client type. Args: client_type: The name of the client STRING
HIGHsrc/integrations/prefect-gcp/prefect_gcp/credentials.py267 Gets an authenticated Cloud Storage client. Args: project: Name of the project to use; oveSTRING
HIGHsrc/integrations/prefect-gcp/prefect_gcp/credentials.py328 Gets an authenticated BigQuery client. Args: project: Name of the project to use; overrideSTRING
HIGHsrc/integrations/prefect-gcp/prefect_gcp/bigquery.py1100 Fetch a single result from the database (async version). Repeated calls using the same inputs to *any*STRING
HIGHsrc/integrations/prefect-gcp/prefect_gcp/bigquery.py1159 Fetch a single result from the database. Repeated calls using the same inputs to *any* of the fetch meSTRING
HIGHsrc/integrations/prefect-gcp/prefect_gcp/bigquery.py1217 Fetch a limited number of results from the database (async version). Repeated calls using the same inpSTRING
HIGHsrc/integrations/prefect-gcp/prefect_gcp/bigquery.py1284 Fetch a limited number of results from the database. Repeated calls using the same inputs to *any* of STRING
HIGHsrc/integrations/prefect-gcp/prefect_gcp/bigquery.py1348 Fetch all results from the database (async version). Repeated calls using the same inputs to *any* of STRING
HIGHsrc/integrations/prefect-gcp/prefect_gcp/bigquery.py1405 Fetch all results from the database. Repeated calls using the same inputs to *any* of the fetch methodSTRING
HIGHsrc/integrations/prefect-gcp/prefect_gcp/bigquery.py1460 Executes an operation on the database (async version). This method is intended to be used for operationSTRING
HIGHsrc/integrations/prefect-gcp/prefect_gcp/bigquery.py1508 Executes an operation on the database. This method is intended to be used for operations that do not reSTRING
HIGHsrc/integrations/prefect-gcp/prefect_gcp/bigquery.py1553 Executes many operations on the database (async version). This method is intended to be used for operatSTRING
HIGHsrc/integrations/prefect-gcp/prefect_gcp/bigquery.py1605 Executes many operations on the database. This method is intended to be used for operations that do notSTRING
HIGH…ations/prefect-gcp/prefect_gcp/workers/cloud_run_v2.py1050 Check whether a transient submission error actually started an execution. Submitting a Cloud Run job iSTRING
HIGH…ations/prefect-gcp/prefect_gcp/workers/cloud_run_v2.py1311 Update execution status until it is no longer running. Args: cr_client (Resource): The basSTRING
HIGH…egrations/prefect-gcp/prefect_gcp/deployments/steps.py41 Pushes the contents of the current working directory to a GCS bucket, excluding files and folders specified in STRING
HIGH…egrations/prefect-gcp/prefect_gcp/deployments/steps.py145 Pulls the contents of a project from an GCS bucket to the current working directory. Args: bucket: TheSTRING
HIGH…refect-kubernetes/prefect_kubernetes/custom_objects.py139Task for reading a namespaced Kubernetes custom object. Args: kubernetes_credentials: `KubernetesCredentialSTRING
HIGH…refect-kubernetes/prefect_kubernetes/custom_objects.py313Task for patching a namespaced custom resource. Args: kubernetes_credentials: KubernetesCredentials block STRING
HIGH…refect-kubernetes/prefect_kubernetes/custom_objects.py386Task for replacing a namespaced custom resource. Args: kubernetes_credentials: KubernetesCredentials block STRING
HIGH…s/prefect-kubernetes/prefect_kubernetes/credentials.py205 Utility function for configuring a generic Kubernetes client. It will attempt to connect to a KuberneteSTRING
HIGH…grations/prefect-kubernetes/prefect_kubernetes/jobs.py174Task for patching a namespaced Kubernetes job. Args: kubernetes_credentials: KubernetesCredentials block STRING
252 more matches not shown…
Decorative Section Separators393 hits · 1470 pts
SeverityFileLineSnippetContext
MEDIUMplans/completed/2026-02-18-runner-refactor.md560 # ── Internal attributes — tests access these directly ────────────────────────COMMENT
MEDIUM⚡plans/completed/2026-02-18-runner-refactor.md576 # ── Private method passthroughs ──────────────────────────────────────────────COMMENT
MEDIUM⚡tests/test_assets.py286# =============================================================================COMMENT
MEDIUM⚡tests/test_assets.py288# =============================================================================COMMENT
MEDIUM⚡tests/test_assets.py389# =============================================================================COMMENT
MEDIUM⚡tests/test_assets.py391# =============================================================================COMMENT
MEDIUM⚡tests/test_assets.py450# =============================================================================COMMENT
MEDIUM⚡tests/test_assets.py452# =============================================================================COMMENT
MEDIUM⚡tests/test_assets.py1045# =============================================================================COMMENT
MEDIUM⚡tests/test_assets.py1047# =============================================================================COMMENT
MEDIUM⚡tests/test_assets.py1230# =============================================================================COMMENT
MEDIUM⚡tests/test_assets.py1232# =============================================================================COMMENT
MEDIUM⚡tests/test_assets.py1312# =============================================================================COMMENT
MEDIUM⚡tests/test_assets.py1314# =============================================================================COMMENT
MEDIUM⚡tests/test_assets.py1412# =============================================================================COMMENT
MEDIUM⚡tests/test_assets.py1414# =============================================================================COMMENT
MEDIUMtests/test_assets.py52# =============================================================================COMMENT
MEDIUMtests/test_assets.py54# =============================================================================COMMENT
MEDIUMtests/test_assets.py678# =============================================================================COMMENT
MEDIUMtests/test_assets.py680# =============================================================================COMMENT
MEDIUMtests/test_subprocess_logging.py15# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_subprocess_logging.py17# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_subprocess_logging.py44# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/test_subprocess_logging.py46# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/runner/test__scheduled_run_poller.py95# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/runner/test__scheduled_run_poller.py97# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/runner/test__scheduled_run_poller.py139# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/runner/test__scheduled_run_poller.py141# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/runner/test__scheduled_run_poller.py200# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/runner/test__scheduled_run_poller.py202# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/runner/test__scheduled_run_poller.py271# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/runner/test__scheduled_run_poller.py273# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/runner/test__scheduled_run_poller.py300# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/runner/test__scheduled_run_poller.py302# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/runner/test__scheduled_run_poller.py528# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/runner/test__scheduled_run_poller.py530# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/runner/test__scheduled_run_poller.py546# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/runner/test__scheduled_run_poller.py548# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/runner/test__scheduled_run_poller.py602# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/runner/test__scheduled_run_poller.py604# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/runner/test__scheduled_run_poller.py682# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/runner/test__scheduled_run_poller.py684# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/runner/test__scheduled_run_poller.py14# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/runner/test__scheduled_run_poller.py16# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/runner/test__flow_run_executor.py160# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/runner/test__flow_run_executor.py162# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/runner/test__flow_run_executor.py568# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/runner/test__flow_run_executor.py570# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/runner/test__flow_run_executor.py24# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/runner/test__flow_run_executor.py26# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/server/services/test_db_vacuum.py173# ---------------------------------------------------------------------------COMMENT
MEDIUM⚡tests/server/services/test_db_vacuum.py175# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/server/services/test_db_vacuum.py62# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/server/services/test_db_vacuum.py64# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/events/server/triggers/test_flow_run_slas.py810# ------------------------------------------------------COMMENT
MEDIUM…ents/server/actions/test_pausing_resuming_work_pool.py324# -----------------------------------------------------COMMENT
MEDIUM…ents/server/actions/test_pausing_resuming_work_pool.py330# -----------------------------------------------------COMMENT
MEDIUMexamples/run_api_sourced_etl.py67# ---------------------------------------------------------------------------COMMENT
MEDIUMexamples/run_api_sourced_etl.py69# ---------------------------------------------------------------------------COMMENT
MEDIUMexamples/run_api_sourced_etl.py83# ---------------------------------------------------------------------------COMMENT
333 more matches not shown…
Cross-File Repetition280 hits · 1400 pts
SeverityFileLineSnippetContext
HIGHtests/test_task_worker.py0tests for the sync_compatible to async_dispatch migration.STRING
HIGHtests/blocks/test_core.py0tests for the sync_compatible to async_dispatch migration.STRING
HIGHtests/concurrency/v1/test_concurrency_sync.py0tests for the sync_compatible to async_dispatch migration.STRING
HIGHtests/test_flows.py0\ from prefect import flow @flow def test_flow(): return 1STRING
HIGHtests/runner/test_storage.py0\ from prefect import flow @flow def test_flow(): return 1STRING
HIGHtests/runner/test_runner.py0\ from prefect import flow @flow def test_flow(): return 1STRING
HIGHtests/deployment/test_steps.py0\ from prefect import flow @flow def test_flow(): return 1STRING
HIGHtests/test_filesystems.py0add files and directories to a temporary directory. returns a tuple with the expected parent-level contents and the expeSTRING
HIGH…c/integrations/prefect-github/tests/test_repository.py0add files and directories to a temporary directory. returns a tuple with the expected parent-level contents and the expeSTRING
HIGH…integrations/prefect-gitlab/tests/test_repositories.py0add files and directories to a temporary directory. returns a tuple with the expected parent-level contents and the expeSTRING
HIGH…ntegrations/prefect-bitbucket/tests/test_repository.py0add files and directories to a temporary directory. returns a tuple with the expected parent-level contents and the expeSTRING
HIGHtests/server/database/test_migrations.py0flow run {{ flow.name }}/{{ flow_run.name }} observed in state `{{ flow_run.state.name }}` at {{ flow_run.state.timestamSTRING
HIGH…9_112902_4160a4841eed_remove_flow_run_notifications.py0flow run {{ flow.name }}/{{ flow_run.name }} observed in state `{{ flow_run.state.name }}` at {{ flow_run.state.timestamSTRING
HIGH…8_133722_7655f31c5157_remove_flow_run_notifications.py0flow run {{ flow.name }}/{{ flow_run.name }} observed in state `{{ flow_run.state.name }}` at {{ flow_run.state.timestamSTRING
HIGHtests/server/database/test_queries.py0creates: - three different work pools ("a", "b", "c") - three different queues in each pool ("aa", "ab", "ac", "ba", "bbSTRING
HIGHtests/server/models/test_workers.py0creates: - three different work pools ("a", "b", "c") - three different queues in each pool ("aa", "ab", "ac", "ba", "bbSTRING
HIGHtests/server/orchestration/api/test_workers.py0creates: - three different work pools ("a", "b", "c") - three different queues in each pool ("aa", "ab", "ac", "ba", "bbSTRING
HIGHtests/server/api/test_logs_text_search.py0opens an appropriate session for the backend, seeds it with the test events, and returns it for use in testsSTRING
HIGHtests/events/test_events_text_search.py0opens an appropriate session for the backend, seeds it with the test events, and returns it for use in testsSTRING
HIGHtests/events/server/test_events_counts.py0opens an appropriate session for the backend, seeds it with the test events, and returns it for use in testsSTRING
HIGHtests/server/api/test_logs_websocket.py0when auth is not configured, old clients without prefect subprotocol are accepted.STRING
HIGHtests/events/server/gateway/test_gateway_out.py0when auth is not configured, old clients without prefect subprotocol are accepted.STRING
HIGHtests/events/server/gateway/test_gateway_in.py0when auth is not configured, old clients without prefect subprotocol are accepted.STRING
HIGHtests/cli/transfer/test_work_pools.py0test that construct returns cached instance for same id.STRING
HIGHtests/cli/transfer/test_flows.py0test that construct returns cached instance for same id.STRING
HIGHtests/cli/transfer/test_concurrency_limits.py0test that construct returns cached instance for same id.STRING
HIGHtests/cli/transfer/test_blocks.py0test that construct returns cached instance for same id.STRING
HIGHtests/cli/transfer/test_work_queues.py0test that construct returns cached instance for same id.STRING
HIGHtests/cli/transfer/test_automations.py0test that construct returns cached instance for same id.STRING
HIGHtests/cli/transfer/test_variables.py0test that construct returns cached instance for same id.STRING
HIGHtests/cli/transfer/test_deployments.py0test that construct returns cached instance for same id.STRING
HIGHtests/cli/transfer/test_work_pools.py0test that get_instance returns none for unknown id.STRING
HIGHtests/cli/transfer/test_flows.py0test that get_instance returns none for unknown id.STRING
HIGHtests/cli/transfer/test_concurrency_limits.py0test that get_instance returns none for unknown id.STRING
HIGHtests/cli/transfer/test_blocks.py0test that get_instance returns none for unknown id.STRING
HIGHtests/cli/transfer/test_work_queues.py0test that get_instance returns none for unknown id.STRING
HIGHtests/cli/transfer/test_automations.py0test that get_instance returns none for unknown id.STRING
HIGHtests/cli/transfer/test_variables.py0test that get_instance returns none for unknown id.STRING
HIGHtests/cli/transfer/test_deployments.py0test that get_instance returns none for unknown id.STRING
HIGHtests/cli/transfer/test_work_pools.py0test that dependencies are cached after first call.STRING
HIGHtests/cli/transfer/test_work_queues.py0test that dependencies are cached after first call.STRING
HIGHtests/cli/transfer/test_automations.py0test that dependencies are cached after first call.STRING
HIGHtests/cli/transfer/test_deployments.py0test that dependencies are cached after first call.STRING
HIGHsrc/integrations/prefect-dbt/tests/conftest.py0sets up test harness for temporary db during test runs.STRING
HIGHsrc/integrations/prefect-kubernetes/tests/conftest.py0sets up test harness for temporary db during test runs.STRING
HIGHsrc/integrations/prefect-github/tests/conftest.py0sets up test harness for temporary db during test runs.STRING
HIGHsrc/integrations/prefect-snowflake/tests/conftest.py0sets up test harness for temporary db during test runs.STRING
HIGHsrc/integrations/prefect-dask/tests/conftest.py0sets up test harness for temporary db during test runs.STRING
HIGHsrc/integrations/prefect-docker/tests/conftest.py0sets up test harness for temporary db during test runs.STRING
HIGHsrc/integrations/prefect-gitlab/tests/conftest.py0sets up test harness for temporary db during test runs.STRING
HIGHsrc/integrations/prefect-sqlalchemy/tests/conftest.py0sets up test harness for temporary db during test runs.STRING
HIGHsrc/integrations/prefect-shell/tests/conftest.py0sets up test harness for temporary db during test runs.STRING
HIGHsrc/integrations/prefect-bitbucket/tests/conftest.py0sets up test harness for temporary db during test runs.STRING
HIGHsrc/integrations/prefect-databricks/tests/conftest.py0sets up test harness for temporary db during test runs.STRING
HIGHsrc/integrations/prefect-redis/tests/conftest.py0sets up test harness for temporary db during test runs.STRING
HIGHsrc/integrations/prefect-azure/tests/conftest.py0sets up test harness for temporary db during test runs.STRING
HIGHsrc/integrations/prefect-gcp/prefect_gcp/decorators.py0validate include_files syntax at decoration time. checks: - all items are strings - no empty or whitespace-only strings STRING
HIGH…ns/prefect-kubernetes/prefect_kubernetes/decorators.py0validate include_files syntax at decoration time. checks: - all items are strings - no empty or whitespace-only strings STRING
HIGH…tegrations/prefect-docker/prefect_docker/decorators.py0validate include_files syntax at decoration time. checks: - all items are strings - no empty or whitespace-only strings STRING
HIGHsrc/integrations/prefect-aws/prefect_aws/decorators.py0validate include_files syntax at decoration time. checks: - all items are strings - no empty or whitespace-only strings STRING
220 more matches not shown…
Empty Error Handlers251 hits · 1252 pts
SeverityFileLineSnippetContext
HIGHtests/conftest.py490except asyncpg.exceptions.ObjectInUseError:CODE
HIGHtests/conftest.py623except AttributeError:CODE
HIGHtests/test_assets.py332except RuntimeError:CODE
HIGHtests/test_assets.py1616except RuntimeError:CODE
HIGHtests/test_logging.py1759except CancelledError:CODE
HIGHtests/test_task_worker.py741except asyncio.exceptions.CancelledError:CODE
HIGHtests/test_task_worker.py904except asyncio.exceptions.CancelledError:CODE
HIGHtests/test_task_worker.py877except asyncio.CancelledError:CODE
HIGHtests/test_observers.py347except asyncio.CancelledError:CODE
HIGHtests/test_transactions.py167except ValueError:CODE
HIGHtests/test_transactions.py204except ValueError:CODE
HIGHtests/test_flow_engine.py4848except ValueError:CODE
HIGHtests/test_flow_engine.py4883except ValueError:CODE
HIGHtests/test_flow_engine.py4987except ValueError:CODE
HIGHtests/test_flow_engine.py5042except ValueError:CODE
HIGHtests/test_task_engine.py2610except ValueError:CODE
HIGHtests/test_task_engine.py2645except ValueError:CODE
HIGHtests/test_task_engine.py2802except ValueError:CODE
HIGHtests/test_task_engine.py2857except ValueError:CODE
HIGHtests/test_tasks.py1432except ValueError:CODE
HIGHtests/test_tasks.py5533except Exception:CODE
HIGHtests/_internal/test_control_listener.py78except (asyncio.TimeoutError, OSError):CODE
HIGHtests/_internal/concurrency/test_cancellation.py90except CancelledError:CODE
HIGHtests/_internal/concurrency/test_cancellation.py59except CancelledError:CODE
HIGHtests/runner/test__starter_bundle.py161except PermissionError:CODE
HIGHtests/runner/test__starter_engine.py426except PermissionError:CODE
HIGHtests/runner/test__starter_direct.py180except PermissionError:CODE
HIGHtests/server/utilities/test_messaging.py486except asyncio.CancelledError:CODE
HIGHtests/server/services/test_task_run_recorder.py807except asyncio.CancelledError:CODE
HIGHtests/cli/test_start_server.py57except httpx.ConnectError:CODE
HIGHtests/cli/test_worker.py1104except ProcessLookupError:CODE
HIGHtests/cli/test_events.py151except AttributeError:CODE
HIGHtests/utilities/test_services.py413except httpx.ConnectError:CODE
HIGHtests/testing/test_fixtures.py152except StopAsyncIteration:CODE
HIGHtests/workers/test_base_worker.py5720except asyncio.CancelledError:CODE
HIGH…/events/server/models/test_automation_notifications.py251except asyncio.CancelledError:CODE
HIGHintegration-tests/test_flow_suspension.py213except Exception:CODE
HIGHintegration-tests/test_worker.py78except subprocess.CalledProcessError:CODE
HIGH…integrations/prefect-dbt/prefect_dbt/core/_manifest.py619except Exception:CODE
HIGHsrc/integrations/prefect-dbt/prefect_dbt/core/_cache.py134except (OSError, IOError):CODE
HIGH…grations/prefect-dbt/prefect_dbt/core/_orchestrator.py1578except Exception:CODE
HIGH…grations/prefect-dbt/prefect_dbt/core/_orchestrator.py1942except Exception:CODE
HIGH…grations/prefect-dbt/prefect_dbt/core/_orchestrator.py1975except Exception:CODE
HIGHsrc/integrations/prefect-dbt/prefect_dbt/core/runner.py632except queue.Full:CODE
HIGHsrc/integrations/prefect-dbt/prefect_dbt/core/runner.py356except MissingContextError:CODE
HIGHsrc/integrations/prefect-dbt/prefect_dbt/core/runner.py679except MissingContextError:CODE
HIGH…ntegrations/prefect-dbt/prefect_dbt/core/_freshness.py228except Exception:CODE
HIGH…integrations/prefect-dbt/prefect_dbt/core/_executor.py142except Exception:CODE
HIGH…integrations/prefect-dbt/prefect_dbt/core/_executor.py164except (ImportError, AttributeError):CODE
HIGH…integrations/prefect-dbt/prefect_dbt/core/_executor.py179except (ImportError, AttributeError):CODE
HIGH…integrations/prefect-dbt/prefect_dbt/core/_executor.py185except (ImportError, AttributeError):CODE
HIGH…integrations/prefect-dbt/prefect_dbt/core/_executor.py203except (ImportError, AttributeError):CODE
HIGH…integrations/prefect-dbt/prefect_dbt/core/_executor.py214except (ImportError, AttributeError):CODE
HIGH…integrations/prefect-dbt/prefect_dbt/core/_executor.py256except (ImportError, AttributeError):CODE
HIGH…integrations/prefect-dbt/prefect_dbt/core/_executor.py267except (ImportError, AttributeError):CODE
HIGH…integrations/prefect-dbt/prefect_dbt/core/_executor.py279except Exception:CODE
HIGH…integrations/prefect-dbt/prefect_dbt/core/_executor.py479except Exception:CODE
HIGH…c/integrations/prefect-dbt/prefect_dbt/cli/__init__.py21except MissingExtrasRequireError:CODE
HIGH…c/integrations/prefect-dbt/prefect_dbt/cli/__init__.py26except MissingExtrasRequireError:CODE
HIGH…c/integrations/prefect-dbt/prefect_dbt/cli/__init__.py31except MissingExtrasRequireError:CODE
191 more matches not shown…
Unused Imports1290 hits · 1184 pts
SeverityFileLineSnippetContext
LOWhatch_build.py1CODE
LOWtools/write_build_info.py1CODE
LOWtests/conftest.py50CODE
LOWtests/conftest.py96CODE
LOWtests/conftest.py97CODE
LOWtests/conftest.py99CODE
LOWtests/conftest.py100CODE
LOWtests/conftest.py101CODE
LOWtests/conftest.py102CODE
LOWtests/conftest.py103CODE
LOWtests/conftest.py104CODE
LOWtests/conftest.py105CODE
LOWtests/conftest.py106CODE
LOWtests/conftest.py107CODE
LOWtests/conftest.py108CODE
LOWtests/conftest.py109CODE
LOWtests/test_infrastructure_bound_flow.py1CODE
LOWtests/test_logging.py1CODE
LOWtests/test_logging.py93CODE
LOWtests/test_logging.py93CODE
LOWtests/test_logging.py94CODE
LOWtests/test_filesystems.py852CODE
LOWtests/test_versioning.py1CODE
LOWtests/test_transactions.py1CODE
LOWtests/test_flows_compat.py1CODE
LOWtests/test_ui_build_validation.py1CODE
LOWtests/test_background_tasks.py26CODE
LOWtests/test_types.py1CODE
LOWtests/test_settings.py1CODE
LOWtests/blocks/conftest.py8CODE
LOWtests/_internal/test_control_listener.py3CODE
LOWtests/docker/test_docker_image.py1CODE
LOWtests/docker/test_buildx.py3CODE
LOWtests/_experimental/bundles/test_zip_extractor.py8CODE
LOWtests/_experimental/bundles/test_zip_builder.py8CODE
LOW…experimental/bundles/test_include_files_integration.py8CODE
LOW…ts/_experimental/bundles/test_dependency_validation.py3CODE
LOWtests/_experimental/bundles/test_ignore_filter.py16CODE
LOWtests/_experimental/bundles/test_execute.py1CODE
LOWtests/_experimental/bundles/test_file_collector.py12CODE
LOWtests/_experimental/bundles/test_path_resolver.py9CODE
LOWtests/plugins/test_plugins.py5CODE
LOWtests/plugins/test_compat.py10CODE
LOWtests/runner/test__scheduled_run_poller.py1CODE
LOWtests/runner/test__deployment_registry.py1CODE
LOWtests/runner/test__workspace_resolver.py1CODE
LOWtests/runner/test__starter_bundle.py1CODE
LOWtests/runner/test__workspace_starter.py1CODE
LOWtests/runner/test__flow_run_executor.py1CODE
LOWtests/runner/test__workspace_runtime_bootstrap.py1CODE
LOWtests/runner/test__cancellation_manager.py1CODE
LOWtests/runner/test__workspace_supervisor.py1CODE
LOWtests/runner/test__process_manager.py1CODE
LOWtests/runner/test__state_proposer.py1CODE
LOWtests/runner/test__workspace_hook_runner.py1CODE
LOWtests/runner/test_runner.py1CODE
LOWtests/runner/test__control_channel.py3CODE
LOWtests/runner/test_control_channel_e2e.py22CODE
LOWtests/runner/test__starter_engine.py1CODE
LOWtests/runner/test__workspace_runtime.py1CODE
1230 more matches not shown…
Self-Referential Comments333 hits · 1058 pts
SeverityFileLineSnippetContext
MEDIUMtests/conftest.py388 # Create the storage path now, fixing an obscure bug where it can be created byCOMMENT
MEDIUMtests/conftest.py458 # Create an empty temporary database for use in the testsCOMMENT
MEDIUMtests/test_infrastructure_bound_flow.py951 # Create an initial flow run using the client directlyCOMMENT
MEDIUMtests/test_infrastructure_bound_flow.py999 # Create an initial flow run using the client directlyCOMMENT
MEDIUM⚡tests/test_filesystems.py358 # Create a real fileCOMMENT
MEDIUM⚡tests/test_filesystems.py362 # Create a symlink within the source directoryCOMMENT
MEDIUM⚡tests/test_filesystems.py366 # Create a destination directoryCOMMENT
MEDIUM⚡tests/test_filesystems.py389 # Create a real fileCOMMENT
MEDIUM⚡tests/test_filesystems.py393 # Create a symlink within the source directoryCOMMENT
MEDIUM⚡tests/test_filesystems.py397 # Create a destination directoryCOMMENT
MEDIUMtests/test_futures.py99 # Create a slow future first, then fast onesCOMMENT
MEDIUMtests/test_futures.py720 # Create a new future instance (simulating getting the future from delay())COMMENT
MEDIUMtests/test_artifacts.py998 # Create an artifact firstCOMMENT
MEDIUMtests/test_artifacts.py1017 # Create an artifact firstCOMMENT
MEDIUMtests/test_transactions.py723 # Create a result store with explicit NullFileSystem for metadata_storageCOMMENT
MEDIUMtests/test_transactions.py825 # Create a result store with explicit NullFileSystem for metadata_storageCOMMENT
MEDIUMtests/test_cache_policies.py307 # Create a compound policy with multiple Inputs policiesCOMMENT
MEDIUMtests/test_flow_engine.py6145 # Create a flow run with a deploymentCOMMENT
MEDIUM⚡tests/test_context.py507 # Create a deployment and avoid red squigglesCOMMENT
MEDIUM⚡tests/test_context.py517 # Create a flow run from the deploymentCOMMENT
MEDIUM⚡tests/test_context.py522 # Define a wrapper function to ensure environment variables and settings propagate becauseCOMMENT
MEDIUMtests/test_context.py534 # Create a new settings object to pick up the new environment variablesCOMMENT
MEDIUMtests/test_settings.py3068 # Create a new settings instance to pick up the env varCOMMENT
MEDIUMtests/test_settings.py3189 # Create a new settings instance that will load from the profiles fileSTRING
MEDIUMtests/_internal/concurrency/test_services.py466 # Creating an instance from an async context is not always safe when sending anCOMMENT
MEDIUM⚡tests/_internal/pydantic/test_validated_func.py428 # Define a test module namespace that simulates using future annotationsCOMMENT
MEDIUM⚡tests/_internal/pydantic/test_validated_func.py431 # Create a model in that namespaceCOMMENT
MEDIUMtests/_internal/pydantic/test_validated_func.py445 # Define a function with the model as a parameter using string annotationCOMMENT
MEDIUMtests/_internal/pydantic/test_validated_func.py456 # Create an instance of the modelCOMMENT
MEDIUMtests/_internal/analytics/conftest.py80 # Create a fresh Prefect home in tmp_pathCOMMENT
MEDIUMtests/_experimental/bundles/test_zip_extractor.py797 # Create a valid zipCOMMENT
MEDIUMtests/_experimental/bundles/test_bundles.py104 # Create a mock flow runCOMMENT
MEDIUMtests/_experimental/bundles/test_bundles.py293 # Create a flow with include_filesCOMMENT
MEDIUMtests/_experimental/bundles/test_zip_builder.py387 # Create a file that will produce a zip >= 50MBCOMMENT
MEDIUM…experimental/bundles/test_include_files_integration.py421 # Create a sidecar zipCOMMENT
MEDIUM…experimental/bundles/test_include_files_integration.py444 # Create a helper script that copies files preserving directory structureCOMMENT
MEDIUM…experimental/bundles/test_include_files_integration.py690 # Create a real flow fileSTRING
MEDIUM…experimental/bundles/test_include_files_integration.py720 # Create a flow and set include_files (as @ecs decorator would)STRING
MEDIUMtests/_experimental/bundles/test_file_collector.py1137 # Create a file slightly over thresholdCOMMENT
MEDIUM⚡tests/_experimental/bundles/test_path_resolver.py715 # Create a test fileCOMMENT
MEDIUM⚡tests/_experimental/bundles/test_path_resolver.py729 # Create a file outside the base directoryCOMMENT
MEDIUMtests/_experimental/bundles/test_path_resolver.py685 # Create a test fileCOMMENT
MEDIUMtests/_experimental/bundles/test_path_resolver.py809 # Create a subdirectoryCOMMENT
MEDIUMtests/_experimental/bundles/test_path_resolver.py822 # Create a dotfileCOMMENT
MEDIUMtests/_experimental/bundles/test_path_resolver.py895 # Create the parent structure to ensure file existsCOMMENT
MEDIUMtests/input/test_run_input.py757 # Create a model with initial dataCOMMENT
MEDIUMtests/plugins/test_plugins.py272 # Create a mock module with a function-based pluginCOMMENT
MEDIUMtests/plugins/test_plugins.py296 # Create a mock module with an async function-based pluginCOMMENT
MEDIUMtests/runner/test_runner.py1232 # Create a mock flow runCOMMENT
MEDIUMtests/runner/test_runner.py3000 # Create an instance and add its flow methodCOMMENT
MEDIUMtests/runner/test_runner.py3027 # Create an instance and add its flow method with cancellation hookCOMMENT
MEDIUMtests/runner/test_runner.py3072 # Create an instance and add its flow method with crashed hookCOMMENT
MEDIUM⚡tests/locking/test_filelock.py81 # Create a stale lock with a dead PIDCOMMENT
MEDIUMtests/locking/test_filelock.py174 # Create a lock held by "this process" so it won't be detectedCOMMENT
MEDIUM⚡tests/server/models/test_flow_runs.py310 # Create a flow run with no labelsCOMMENT
MEDIUMtests/server/models/test_flow_runs.py269 # Create a flow run with initial labelsCOMMENT
MEDIUMtests/server/models/test_csrf_token.py46 # Create a tokenCOMMENT
MEDIUMtests/server/models/test_deployments.py296 # Create a global concurrency limit firstCOMMENT
MEDIUMtests/server/models/test_deployments.py1138 # Create a deployment with custom labelsCOMMENT
MEDIUMtests/server/models/test_deployments.py1183 # Create a deployment with custom labels and schedulesCOMMENT
273 more matches not shown…
Excessive Try-Catch Wrapping572 hits · 567 pts
SeverityFileLineSnippetContext
LOW⚡tests/test_logging.py1842 except Exception:CODE
LOWtests/test_logging.py1919 except Exception as exc: # noqaCODE
LOWtests/test_flows.py2140 except Exception:CODE
LOW⚡tests/test_exceptions.py55 except Exception as exc:CODE
LOW⚡tests/test_exceptions.py65 except Exception as exc:CODE
MEDIUMtests/test_exceptions.py52def test_pickle_roundtrip_single_error(self):CODE
MEDIUMtests/test_exceptions.py62def test_pickle_roundtrip_two_errors(self):CODE
MEDIUMtests/test_tasks.py1429def test_flow():CODE
LOWtests/test_tasks.py3959 except Exception:CODE
LOWtests/test_tasks.py5533 except Exception:CODE
LOWtests/_internal/compatibility/test_migration.py57 except Exception as exc:CODE
LOWtests/utilities/test_importtools.py471 except Exception as e:STRING
LOWtests/utilities/test_pydantic.py41except Exception as exc:CODE
LOWtests/utilities/test_dockerutils.py17except Exception:CODE
LOWtests/utilities/test_urls.py484 except Exception:CODE
LOWtests/events/client/test_events_client.py446 except Exception as e:CODE
LOWintegration-tests/test_task_worker.py73 except Exception as e:CODE
LOWintegration-tests/test_flow_suspension.py65 except Exception as exc:CODE
LOWintegration-tests/test_flow_suspension.py213 except Exception:CODE
LOWintegration-tests/test_nested_cancellation.py99 except Exception as exc: # pragma: no cover - diagnostic pathCODE
LOWintegration-tests/test_client_context_lifespan.py112 except Exception as e:CODE
MEDIUMintegration-tests/test_client_context_lifespan.py113 print(f"Error entering client many times {e}")CODE
MEDIUMintegration-tests/test_client_context_lifespan.py35def lifespan(app):CODE
LOWintegration-tests/test_load_flows_concurrently.py37 except Exception as e:CODE
LOWintegration-tests/test_worker.py35 except Exception:CODE
LOWintegration-tests/test_schedule_statefulness.py49 except Exception as e:CODE
MEDIUMintegration-tests/test_schedule_statefulness.py50 print(f"Error checking schedules: {e}")CODE
LOWintegration-tests/test_runner_resilience.py76 except Exception as e:STRING
LOWintegration-tests/test_runner_resilience.py83 except Exception as e:STRING
LOWui-v2/e2e/helpers/run_flows.py172 except Exception as e:CODE
MEDIUMui-v2/e2e/helpers/run_flows.py173 print(f"Error running scenario '{args.scenario}': {e}", file=sys.stderr)CODE
LOWexamples/ai_database_cleanup_with_approval.py255 except Exception as e:CODE
LOWscripts/backfill_release_notes.py321 except Exception:CODE
LOWscripts/run-integration-flows.py47 except Exception as e:CODE
MEDIUMscripts/run-integration-flows.py48 print(f"Error running {script}: {e}")CODE
LOWscripts/all_links_should_be_ok.py38 except Exception:CODE
LOWscripts/all_links_should_be_ok.py48 except Exception as exc:CODE
LOWscripts/wait-for-server.py53 except Exception as exc:CODE
MEDIUMscripts/prepare_release_notes.py89 print(f"Error generating release notes: {e}")CODE
LOWscripts/prepare_release_notes.py339 except Exception:CODE
MEDIUMscripts/prepare_release_notes.py452 print(f"Error: Invalid version format '{version}'. Expected format: X.Y.Z")CODE
MEDIUMscripts/prepare_release_notes.py459 print(f"Error: Could not parse version '{version}'")CODE
MEDIUMscripts/prepare_integration_release_notes.py58 print(f"Error running command {' '.join(cmd)}: {e}", file=sys.stderr)CODE
LOWscripts/prepare_integration_release_notes.py122 except Exception:CODE
MEDIUMscripts/prepare_integration_release_notes.py354 print(f"Error: Package '{args.package}' not found.", file=sys.stderr)STRING
LOWscripts/generate_cli_docs.py135 except Exception:CODE
LOWscripts/test_unc_paths.py64 except Exception as e:STRING
MEDIUMscripts/test_unc_paths.py65 print(f"Error: {type(e).__name__}: {e}")STRING
LOWscripts/generate_mintlify_openapi_docs.py113 except Exception:CODE
MEDIUMscripts/generate_api_ref.py35 print(f"Error generating API reference: {result.stderr}", file=sys.stderr)CODE
LOW…integrations/prefect-dbt/prefect_dbt/core/_manifest.py619 except Exception:CODE
LOW…grations/prefect-dbt/prefect_dbt/core/_orchestrator.py743 except Exception as e:CODE
LOW…grations/prefect-dbt/prefect_dbt/core/_orchestrator.py1286 except Exception as exc:CODE
LOW…grations/prefect-dbt/prefect_dbt/core/_orchestrator.py1364 except Exception:CODE
LOW…grations/prefect-dbt/prefect_dbt/core/_orchestrator.py1392 except Exception as exc:CODE
LOW…grations/prefect-dbt/prefect_dbt/core/_orchestrator.py1578 except Exception:CODE
LOW…grations/prefect-dbt/prefect_dbt/core/_orchestrator.py1593 except Exception as exc:CODE
LOW…grations/prefect-dbt/prefect_dbt/core/_orchestrator.py1942 except Exception:CODE
LOW…grations/prefect-dbt/prefect_dbt/core/_orchestrator.py1975 except Exception:CODE
LOW…grations/prefect-dbt/prefect_dbt/core/_orchestrator.py2189 except Exception as exc:CODE
512 more matches not shown…
Deep Nesting449 hits · 368 pts
SeverityFileLineSnippetContext
LOWtests/conftest.py583CODE
LOWtests/test_flows.py2086CODE
LOWtests/test_flow_engine.py860CODE
LOWtests/test_settings.py2849CODE
LOWtests/_internal/concurrency/test_cancellation.py447CODE
LOWtests/_internal/concurrency/test_cancellation.py478CODE
LOWtests/_internal/concurrency/test_cancellation.py499CODE
LOWtests/_internal/concurrency/test_cancellation.py539CODE
LOWtests/_internal/concurrency/test_cancellation.py583CODE
LOWtests/_internal/concurrency/test_cancellation.py622CODE
LOWtests/_internal/concurrency/test_cancellation.py644CODE
LOWtests/_internal/concurrency/test_cancellation.py649CODE
LOWtests/experimental/test_bundles.py853CODE
LOWtests/plugins/test_plugins.py479CODE
LOWtests/plugins/test_plugins.py562CODE
LOWtests/runner/test_control_channel_e2e.py354CODE
LOWtests/runner/test__starter_engine.py196CODE
LOWtests/runner/test__starter_engine.py399CODE
LOWtests/runner/test__starter_engine.py433CODE
LOWtests/server/models/test_filters.py51CODE
LOW…sts/server/orchestration/api/test_flow_run_graph_v2.py41CODE
LOWtests/server/orchestration/api/test_workers.py3958CODE
LOWtests/server/orchestration/api/ui/test_task_runs.py181CODE
LOWtests/cli/test_start_server.py49CODE
LOWtests/cli/test_deploy.py2911CODE
LOWtests/cli/test_deploy.py2945CODE
LOWtests/cli/test_transfer.py30CODE
LOWtests/concurrency/test_leases.py108CODE
LOWtests/workers/test_base_worker.py2661CODE
LOWtests/workers/test_cleanup.py890CODE
LOWtests/events/server/triggers/test_flow_run_slas.py761CODE
LOW…/events/server/models/test_automation_notifications.py161CODE
LOW…s/events/server/actions/test_jinja_templated_action.py652CODE
LOW…s/events/server/actions/test_jinja_templated_action.py661CODE
LOWtests/infrastructure/provisioners/test_cloud_run.py241CODE
LOWtests/infrastructure/provisioners/test_cloud_run.py242CODE
LOWtests/infrastructure/provisioners/test_cloud_run_v2.py211CODE
LOWtests/infrastructure/provisioners/test_cloud_run_v2.py212CODE
LOWtests/infrastructure/provisioners/test_ecs.py971CODE
LOWtests/infrastructure/provisioners/test_ecs.py986CODE
LOWscripts/generate_settings_ref.py13CODE
LOWscripts/generate_settings_ref.py55CODE
LOWscripts/backfill_release_notes.py102CODE
LOWscripts/prepare_release_notes.py104CODE
LOWscripts/prepare_release_notes.py345CODE
LOWscripts/prepare_release_notes.py399CODE
LOWscripts/prepare_integration_release_notes.py167CODE
LOWscripts/prepare_integration_release_notes.py361CODE
LOWscripts/generate_cli_docs.py111CODE
LOWscripts/generate_example_pages.py70CODE
LOWscripts/verify_test_selection.py38CODE
LOWscripts/generate_mintlify_openapi_docs.py39CODE
LOWscripts/pyright_diff.py60CODE
LOW…integrations/prefect-dbt/prefect_dbt/core/_manifest.py361CODE
LOW…grations/prefect-dbt/prefect_dbt/core/_orchestrator.py795CODE
LOW…grations/prefect-dbt/prefect_dbt/core/_orchestrator.py880CODE
LOW…grations/prefect-dbt/prefect_dbt/core/_orchestrator.py1013CODE
LOW…grations/prefect-dbt/prefect_dbt/core/_orchestrator.py1095CODE
LOW…grations/prefect-dbt/prefect_dbt/core/_orchestrator.py1345CODE
LOW…grations/prefect-dbt/prefect_dbt/core/_orchestrator.py1596CODE
389 more matches not shown…
Hallucination Indicators31 hits · 315 pts
SeverityFileLineSnippetContext
CRITICALtests/cli/test_api_command.py165 assert route.calls.last.request.headers.get("X-Custom") == "value"CODE
CRITICALtests/cli/test_api_command.py190 assert route.calls.last.request.headers.get("X-Custom-1") == "value1"CODE
CRITICALtests/cli/test_api_command.py191 assert route.calls.last.request.headers.get("X-Custom-2") == "value2"CODE
CRITICALsrc/integrations/prefect-dbt/tests/cloud/test_jobs.py243 request_body = json.loads(respx_mock.calls.last.request.content.decode())CODE
CRITICALsrc/integrations/prefect-dbt/tests/cloud/test_jobs.py1623 request_body = json.loads(respx_mock.calls.last.request.content.decode())CODE
CRITICALsrc/integrations/prefect-dbt/tests/cloud/test_jobs.py1650 request_body = json.loads(respx_mock.calls.last.request.content.decode())CODE
CRITICAL…owflake/prefect_snowflake/experimental/workers/spcs.py23from snowflake.core.exceptions import NotFoundErrorCODE
CRITICAL⚡…efect-snowflake/tests/experimental/test_spcs_worker.py1834 from snowflake.core.exceptions import NotFoundErrorCODE
CRITICAL…efect-snowflake/tests/experimental/test_spcs_worker.py534 from snowflake.core.exceptions import NotFoundErrorCODE
CRITICAL…efect-snowflake/tests/experimental/test_spcs_worker.py1203 from snowflake.core.exceptions import NotFoundErrorCODE
CRITICALsrc/integrations/prefect-docker/tests/test_images.py34 client.__enter__.return_value.images.pull.assert_called_once_with(CODE
CRITICALsrc/integrations/prefect-docker/tests/test_images.py56 client.__enter__.return_value.images.pull.assert_called_once_with(CODE
CRITICALsrc/integrations/prefect-docker/tests/test_images.py70 client.__enter__.return_value.images.pull.assert_called_once_with(**pull_kwargs)CODE
CRITICALsrc/integrations/prefect-docker/tests/test_worker.py2480 mock_docker_client.containers.get.return_value.stop.assert_called_once_with(CODE
CRITICAL…c/integrations/prefect-docker/tests/test_containers.py32 client.__enter__.return_value.containers.create.assert_called_once_with(CODE
CRITICAL…c/integrations/prefect-docker/tests/test_containers.py47 client.__enter__.return_value.containers.get.assert_called_once_with("42")CODE
CRITICAL…c/integrations/prefect-docker/tests/test_containers.py60 client.__enter__.return_value.containers.get.assert_called_once_with("42")CODE
CRITICAL…c/integrations/prefect-docker/tests/test_containers.py73 client.__enter__.return_value.containers.get.assert_called_once_with("42")CODE
CRITICAL…c/integrations/prefect-docker/tests/test_containers.py86 client.__enter__.return_value.containers.get.assert_called_once_with("42")CODE
CRITICAL…rations/prefect-docker/tests/deployments/test_steps.py197 mock_docker_client.images.get.return_value.tag.assert_has_calls(CODE
CRITICAL…rations/prefect-docker/tests/deployments/test_steps.py206 mock_docker_client.images.get.return_value.tag.assert_called_once_with(CODE
CRITICAL…rations/prefect-docker/tests/deployments/test_steps.py654 mock_docker_client.images.get.return_value.tag.assert_called_once_with(CODE
CRITICAL…rations/prefect-docker/tests/deployments/test_steps.py676 mock_docker_client.images.get.return_value.tag.assert_called_once_with(CODE
CRITICALsrc/integrations/prefect-azure/tests/conftest.py4from azure.core.exceptions import ResourceExistsErrorCODE
CRITICALsrc/integrations/prefect-azure/tests/test_aci_worker.py12from azure.core.exceptions import HttpResponseError, ResourceNotFoundErrorCODE
CRITICAL…/integrations/prefect-azure/tests/test_blob_storage.py6from azure.core.exceptions import ResourceExistsErrorCODE
CRITICAL…efect-azure/tests/experimental/bundles/test_execute.py8from azure.core.exceptions import ResourceNotFoundErrorCODE
CRITICAL…refect-azure/tests/experimental/bundles/test_upload.py7from azure.core.exceptions import ClientAuthenticationError, ResourceExistsErrorCODE
CRITICAL…tegrations/prefect-azure/prefect_azure/blob_storage.py8from azure.core.exceptions import ResourceNotFoundErrorCODE
CRITICAL…fect-azure/prefect_azure/workers/container_instance.py81from azure.core.exceptions import HttpResponseError, ResourceNotFoundErrorCODE
CRITICALsrc/prefect/tasks.py186 context.task.fn.__code__.co_code.hex(),CODE
Cross-Language Confusion68 hits · 275 pts
SeverityFileLineSnippetContext
HIGHtests/blocks/test_notifications.py1000 == b'{"text":"test","metadata":{"optional":null},"items":[null,"test name"]}'CODE
HIGH⚡tests/docker/test_docker_image.py71 image.push()CODE
HIGH⚡tests/docker/test_docker_image.py88 image.push() # should not raiseCODE
HIGH⚡tests/docker/test_docker_image.py217 image.push()CODE
HIGH⚡tests/docker/test_docker_image.py233 image.push()CODE
HIGHtests/docker/test_docker_image.py197 image.push()CODE
HIGHtests/server/database/test_migrations.py1619 "INSERT INTO flow_run_notification_policy (is_active, state_names, tags, message_template, block_docCODE
HIGH⚡tests/server/orchestration/api/test_work_queues.py1617 when they entered the PENDING state, not start_time (which is null)."""STRING
HIGHtests/cli/test_deploy.py916 # An explicit empty pull must not be saved back as null, which wouldCOMMENT
HIGHtests/_sdk/test_schema_converter_unions.py7 """Test conversion of nullable (anyOf with null) types."""STRING
HIGH⚡tests/_sdk/test_schema_converter_unions.py153 e.g., anyOf: [ {"type":"array","items":{"anyOf":[str, int]}}, null ]STRING
HIGHtests/deployment/test_steps.py1541 "echo first && echo second",STRING
HIGH⚡src/integrations/prefect-github/prefect_github/user.py2356 privacy: If non-null, filters repositoriesSTRING
HIGH⚡src/integrations/prefect-github/prefect_github/user.py2360 is_locked: If non-null, filters repositoriesSTRING
HIGH⚡src/integrations/prefect-github/prefect_github/user.py2364 contribution_types: If non-null, includeSTRING
HIGHsrc/integrations/prefect-github/prefect_github/user.py532 privacy: If non-null, filters repositories according to privacy.STRING
HIGHsrc/integrations/prefect-github/prefect_github/user.py543 is_locked: If non-null, filters repositories according toSTRING
HIGHsrc/integrations/prefect-github/prefect_github/user.py1143 privacy: If non-null, filters repositories according toSTRING
HIGHsrc/integrations/prefect-github/prefect_github/user.py1155 is_locked: If non-null, filters repositories according toSTRING
HIGHsrc/integrations/prefect-github/prefect_github/user.py1163 is_fork: If non-null, filters repositories according toSTRING
HIGH⚡…c/integrations/prefect-github/prefect_github/viewer.py2108 privacy: If non-null, filters repositoriesSTRING
HIGH⚡…c/integrations/prefect-github/prefect_github/viewer.py2112 is_locked: If non-null, filters repositoriesSTRING
HIGH⚡…c/integrations/prefect-github/prefect_github/viewer.py2116 contribution_types: If non-null, includeSTRING
HIGH…c/integrations/prefect-github/prefect_github/viewer.py476 privacy: If non-null, filters repositories according to privacy.STRING
HIGH…c/integrations/prefect-github/prefect_github/viewer.py487 is_locked: If non-null, filters repositories according toSTRING
HIGH…c/integrations/prefect-github/prefect_github/viewer.py1021 privacy: If non-null, filters repositories according toSTRING
HIGH…c/integrations/prefect-github/prefect_github/viewer.py1033 is_locked: If non-null, filters repositories according toSTRING
HIGH…c/integrations/prefect-github/prefect_github/viewer.py1041 is_fork: If non-null, filters repositories according toSTRING
HIGH⚡…grations/prefect-github/prefect_github/organization.py128 privacy: If non-null, filters teams according to privacy.STRING
HIGH⚡…grations/prefect-github/prefect_github/organization.py129 role: If non-null, filters teams according to whether the viewerSTRING
HIGH⚡…grations/prefect-github/prefect_github/organization.py131 query: If non-null, filters teams with query on team name and teamSTRING
HIGH…grations/prefect-github/prefect_github/organization.py944 privacy: If non-null, filters repositories according toSTRING
HIGH…grations/prefect-github/prefect_github/organization.py956 is_locked: If non-null, filters repositories according toSTRING
HIGH…grations/prefect-github/prefect_github/organization.py964 is_fork: If non-null, filters repositories according toSTRING
HIGH…tegrations/prefect-github/prefect_github/repository.py439 privacy: If non-null, filters repositories according to privacy.STRING
HIGH…tegrations/prefect-github/prefect_github/repository.py450 is_locked: If non-null, filters repositories according to whetherSTRING
HIGH…ions/prefect-github/prefect_github/repository_owner.py133 privacy: If non-null, filters repositories according toSTRING
HIGH…ions/prefect-github/prefect_github/repository_owner.py145 is_locked: If non-null, filters repositories according toSTRING
HIGH…ions/prefect-github/prefect_github/repository_owner.py153 is_fork: If non-null, filters repositories according toSTRING
HIGH…c/integrations/prefect-dask/tests/test_task_runners.py392 assert result.equals(pd.Series([3, 6], index=["x", "y"]))CODE
HIGH…ons/prefect-docker/prefect_docker/deployments/steps.py532 client.api.push(CODE
HIGH…ons/prefect-docker/prefect_docker/deployments/steps.py538 client.api.push(CODE
HIGH…grations/prefect-aws/prefect_aws/workers/ecs_worker.py325 "the task when it is launching. If this value is not null, it will "STRING
HIGH…grations/prefect-aws/prefect_aws/workers/ecs_worker.py546 "not null, it will override the value in the task definition. This value "STRING
HIGH…grations/prefect-aws/prefect_aws/workers/ecs_worker.py607 "the task when it is launching. If this value is not null, it will "STRING
HIGH…grations/prefect-aws/prefect_aws/workers/ecs_worker.py619 "If using the 'awsvpc' network mode and this field is null, your default "STRING
HIGH…tions/prefect-aws/prefect_aws/observers/diagnostics.py70 # --- Container exit code analysis (non-zero or null) -------------------COMMENT
HIGH⚡src/integrations/prefect-shell/tests/test_commands.py128 command="echo $HOME && echo $TEST_VAR",CODE
HIGHsrc/prefect/serializers.py298 level: If not null, the level of compression to pass to `compress`.STRING
HIGHsrc/prefect/states.py463 If the state result is null, a wrapper exception will be returned with the stateSTRING
HIGHsrc/prefect/states.py549 If the state result is null, a wrapper exception will be returned with the stateSTRING
HIGHsrc/prefect/_internal/buildx.py211 python_on_whales.docker.image.push(full_name)CODE
HIGHsrc/prefect/docker/docker_image.py162 events = client.api.push(CODE
HIGH⚡src/prefect/server/database/query_components.py233 # if null, no limit will be appliedCOMMENT
HIGH…04_09_125712_cc510aec4689_automation_event_follower.py48 "(\n (\n lower(hex(randomblob(4)))\n || '-'\n || lower(hex(randomblob(2)))\n CODE
HIGH…4_03_13_111316_bacc60edce16_create_csrf_token_toble.py35 "(\n (\n lower(hex(randomblob(4)))\n || '-'\n || lower(hex(randomblob(2)))\n CODE
HIGH…e/2024_04_03_111618_07ed05dfd4ec_automations_models.py58 "(\n (\n lower(hex(randomblob(4)))\n || '-'\n || lower(hex(randomblob(2)))\n CODE
HIGH…e/2024_04_03_111618_07ed05dfd4ec_automations_models.py120 "(\n (\n lower(hex(randomblob(4)))\n || '-'\n || lower(hex(randomblob(2)))\n CODE
HIGH…e/2024_04_03_111618_07ed05dfd4ec_automations_models.py175 "(\n (\n lower(hex(randomblob(4)))\n || '-'\n || lower(hex(randomblob(2)))\n CODE
HIGH…e/2024_04_03_111618_07ed05dfd4ec_automations_models.py246 "(\n (\n lower(hex(randomblob(4)))\n || '-'\n || lower(hex(randomblob(2)))\n CODE
8 more matches not shown…
Redundant / Tautological Comments128 hits · 187 pts
SeverityFileLineSnippetContext
LOWtests/conftest.py338 # Set PREFECT_HOME to a temporary directory to avoid clobberingCOMMENT
LOWtests/test_flow_engine.py5880 # Set heartbeat_frequency to enable heartbeatsCOMMENT
LOWtests/test_flow_engine.py5945 # Set heartbeat_frequency to None (disabled)COMMENT
LOWtests/test_flow_engine.py5973 # Set heartbeat_frequency to None (disabled)COMMENT
LOWtests/server/orchestration/api/test_bulk_operations.py392 # Set state to cancelledCOMMENT
LOW⚡tests/server/orchestration/api/test_flow_runs.py355 # Set limit to 50 bytes; even a small payload should failCOMMENT
LOWtests/server/orchestration/api/test_deployments.py3883 # Set work_queue to None by removing the work_queue relationshipCOMMENT
LOWtests/server/services/test_foreman.py474 # Set inactivity_heartbeat_multiple to 0 to immediately mark worker as offlineCOMMENT
LOW⚡tests/cli/test_deploy.py3882 # Check if the deployment was created correctlyCOMMENT
LOW⚡tests/cli/test_deploy.py3892 # Check if the second deployment was not createdCOMMENT
LOWtests/cli/test_deploy.py3647 # Check if deployments were created correctlyCOMMENT
LOWtests/cli/test_deploy.py3824 # Check if the two deployments were created correctlyCOMMENT
LOWtests/cli/test_deploy.py3839 # Check if the third deployment was not createdCOMMENT
LOWtests/cli/test_deploy.py3945 # Check if deployments were created correctly and without the provided CLI optionsCOMMENT
LOWtests/cli/test_deploy.py4217 # Check if the deployment was created correctlyCOMMENT
LOWtests/cli/test_deploy.py4317 # Check if the deployment was created correctlyCOMMENT
LOWtests/cli/test_deploy.py4378 # Check if the deployment was created correctlyCOMMENT
LOWtests/cli/test_deploy.py4458 # Check if the deployment was created correctlyCOMMENT
LOWtests/cli/test_deploy.py4549 # Check if the deployments were not createdCOMMENT
LOWtests/cli/test_deploy.py4626 # Check if the deployment was created correctlyCOMMENT
LOWtests/cli/test_deploy.py4753 # Check if the deployment was created correctlyCOMMENT
LOWtests/cli/test_deploy.py4890 # Check if the deployment was created correctlyCOMMENT
LOWtests/cli/test_deploy.py4937 # Check if the deployments were created correctlyCOMMENT
LOWtests/cli/test_deploy.py6822 # Check if deployments were created correctlyCOMMENT
LOW⚡tests/utilities/test_hashing.py59 # Check if the hash is stableCOMMENT
LOW…/events/server/models/test_automation_notifications.py61 # Check if we're using PostgreSQLCOMMENT
LOW…infrastructure/provisioners/test_container_instance.py1326 None, # Assign identity to registryCODE
LOW…infrastructure/provisioners/test_container_instance.py1634 None, # Assign identity to registryCODE
LOW…infrastructure/provisioners/test_container_instance.py1973 None, # Assign identity to registryCODE
LOW…infrastructure/provisioners/test_container_instance.py2322 None, # Assign identity to registryCODE
LOWtests/infrastructure/provisioners/test_modal.py104 # Check if the block document exists and has expected valuesCOMMENT
LOWtests/infrastructure/provisioners/test_modal.py112 # Check if the base job template was updatedCOMMENT
LOWtests/infrastructure/provisioners/test_modal.py149 # Check if the base job template was updatedCOMMENT
LOWtests/infrastructure/provisioners/test_modal.py190 # Check if the block document exists and has expected valuesCOMMENT
LOWtests/infrastructure/provisioners/test_modal.py198 # Check if the base job template was updatedCOMMENT
LOW⚡tests/infrastructure/provisioners/test_coiled.py101 # Check if the block document exists and has expected valuesCOMMENT
LOW⚡tests/infrastructure/provisioners/test_coiled.py108 # Check if the base job template was updatedCOMMENT
LOWtests/infrastructure/provisioners/test_coiled.py131 # Check if the base job template was updatedCOMMENT
LOWtests/infrastructure/provisioners/test_coiled.py170 # Check if the block document exists and has expected valuesCOMMENT
LOWtests/infrastructure/provisioners/test_coiled.py177 # Check if the base job template was updatedCOMMENT
LOW⚡tests/infrastructure/provisioners/test_ecs.py85 # Check if provisioning is neededCOMMENT
LOW⚡tests/infrastructure/provisioners/test_ecs.py224 # Check if the IAM user existsCOMMENT
LOWtests/infrastructure/provisioners/test_ecs.py119 # Check if the IAM policy existsCOMMENT
LOWtests/infrastructure/provisioners/test_ecs.py330 # Check if the block document existsCOMMENT
LOWload_testing/run-server.sh13 # Check if container existsCOMMENT
LOWexamples/ai_data_analyst_with_pydantic_ai.py264 # Display resultsCOMMENT
LOWexamples/ai_data_analyst_with_pydantic_ai.py279 # Check if OpenAI API key is setCOMMENT
LOWscripts/backfill_release_notes.py223 # Check if we need to add spacingCOMMENT
LOWscripts/backfill_release_notes.py235 # Check if we need to add spacingCOMMENT
LOWscripts/prepare_release_notes.py231 # Check if we need to add spacingCOMMENT
LOWscripts/prepare_release_notes.py243 # Check if we need to add spacingCOMMENT
LOWscripts/prepare_integration_release_notes.py396 # Check if file exists to determine if we need frontmatterCOMMENT
LOWclient/client_deploy.py21 # Check if the smoke-test work pool existsCOMMENT
LOW…grations/prefect-dbt/prefect_dbt/core/_orchestrator.py868 # Check if any of the test's parents is node_idCOMMENT
LOWsrc/integrations/prefect-dbt/prefect_dbt/core/runner.py962 # Check if event has a message (cheap attribute access)COMMENT
LOWsrc/integrations/prefect-dbt/prefect_dbt/core/runner.py1317 # Check if this is a valid dbt commandCOMMENT
LOW…t_kubernetes_integration_tests/test_crash_detection.py78 # Check if we got at least the pending event - but only if we have eventsCOMMENT
LOW…ions/prefect-kubernetes/prefect_kubernetes/observer.py463 # Check if a corresponding event already exists. If so, we don't need to emit a new one.COMMENT
LOW…ions/prefect-kubernetes/prefect_kubernetes/observer.py1022 # Check if there are any other jobs with this flow run labelCOMMENT
LOW…ions/prefect-kubernetes/prefect_kubernetes/observer.py1030 # Check if any other job is completed or runningCOMMENT
68 more matches not shown…
Modern AI Meta-Vocabulary59 hits · 178 pts
SeverityFileLineSnippetContext
MEDIUMplans/2026-01-12-deployment-crud-events.md28# Cloud uses prefect.* prefix for orchestration objectsCOMMENT
MEDIUMtests/test_background_tasks.py210 # after orchestration in a way that differs by microseconds, or theCOMMENT
MEDIUMtests/server/models/test_flow_run_states.py127 # Do not start until we are orchestrating in session 1COMMENT
MEDIUMtests/server/models/test_flow_run_states.py388 # put the run in a pending state, which succeeds due to injected orchestrationCOMMENT
MEDIUMtests/server/models/test_task_run_states.py187 # put the run in a pending state, which succeeds due to injected orchestrationCOMMENT
MEDIUM…ion/test_validate_deployment_concurrency_at_running.py906 # Set up two orchestration contextsCOMMENT
MEDIUM…rchestration/test_flow_run_instrumentation_policies.py181 # send the pending state through orchestration so it is written to the DBCOMMENT
MEDIUM…rchestration/test_flow_run_instrumentation_policies.py239 # send the pending state through orchestration so it is written to the DBCOMMENT
MEDIUMtests/server/orchestration/test_core_policy.py2346 # from being accepted, but this orchestration rule is the wrong place to do itCOMMENT
MEDIUMtests/server/orchestration/test_core_policy.py5286 # The orchestration rule should handle the error gracefullyCOMMENT
MEDIUM…/orchestration/test_task_concurrency_v2_integration.py466 # Set validated state to completed (normally done by orchestration)COMMENT
MEDIUM…/orchestration/test_task_concurrency_v2_integration.py565 # Set validated state to completed (normally done by orchestration)COMMENT
MEDIUM…/orchestration/test_task_concurrency_v2_integration.py715 # Set validated state to completed (normally done by orchestration)COMMENT
MEDIUM⚡tests/server/orchestration/api/test_flow_runs.py2008 # A multi-agent environment may attempt to orchestrate a run more than once,COMMENT
MEDIUM⚡tests/server/orchestration/api/test_flow_runs.py2008 # A multi-agent environment may attempt to orchestrate a run more than once,COMMENT
MEDIUMtests/client/test_prefect_client.py175 assert pool._retries == 3 # set in prefect.client.orchestration.get_client()CODE
MEDIUMtests/client/test_prefect_client.py215 assert pool._retries == 3 # set in prefect.client.orchestration.get_client()CODE
MEDIUMtests/client/test_prefect_client.py247 assert pool._retries == 3 # set in prefect.client.orchestration.get_client()CODE
MEDIUMexamples/hello_world.py12# 1. Ship production-ready orchestration code with **zero boilerplate**.COMMENT
MEDIUMexamples/hello_world.py76# This simple example demonstrates Prefect's core value proposition: taking regular Python code and enhancing it with prCOMMENT
MEDIUMexamples/hello_world.py96# Prefect lets you orchestrate these operations effortlessly with automatic observability, error handling, and retries.COMMENT
MEDIUMexamples/hello_world.py108# The `@flow` decorator is your gateway to enterprise-grade orchestration - no complex configuration needed!COMMENT
MEDIUMexamples/hello_world.py111# For more information about the orchestration concepts demonstrated in this example, see the [Prefect documentation](htCOMMENT
MEDIUMexamples/ai_data_analyst_with_pydantic_ai.py344# For more on AI orchestration with Prefect:COMMENT
MEDIUMexamples/run_api_sourced_etl.py17# * **Prefect** wraps the whole thing in battle-tested orchestration: automatic [retries](https://docs.prefect.io/v3/devCOMMENT
MEDIUMexamples/run_api_sourced_etl.py42# Watch as Prefect orchestrates the ETL pipeline with automatic retries and logging. The flow fetches multiple pages of COMMENT
MEDIUM⚡examples/run_api_sourced_etl.py121# Flow – orchestrate the ETL with optional concurrencyCOMMENT
MEDIUMexamples/run_api_sourced_etl.py171# Prefect lets you focus on *data*, not orchestration plumbing – happy ETL-ing! 🎉COMMENT
MEDIUMexamples/run_dbt_with_prefect.py17# * **Prefect** wraps the entire workflow in battle-tested orchestration: automatic [retries](https://docs.prefect.io/v3COMMENT
MEDIUMexamples/run_dbt_with_prefect.py37# Write three focused Python functions (download project, run dbt commands, orchestrate workflow), add Prefect decoratorCOMMENT
MEDIUMexamples/run_dbt_with_prefect.py45# Watch as Prefect orchestrates the complete dbt lifecycle: downloading the project, running models, executing tests, anCOMMENT
MEDIUM⚡examples/run_dbt_with_prefect.py222# This flow orchestrates the standard dbt workflow: deps → seed → run → test.COMMENT
MEDIUMexamples/run_dbt_with_prefect.py280# Traditional dbt orchestration often involves brittle shell scripts, complex YAML configurations, or heavyweight workflCOMMENT
MEDIUMexamples/run_dbt_with_prefect.py291# To learn more about orchestrating analytics workflows with Prefect, check out:COMMENT
MEDIUMexamples/atproto_dashboard_with_prefect_assets.py25# * **Flow orchestration** – Coordinate asset materialization with retries and schedulingCOMMENT
MEDIUMexamples/simple_web_scraper.py88# `@flow` elevates a function to a *flow* – the orchestration nucleus that can callCOMMENT
MEDIUMexamples/simple_web_scraper.py135# Happy scraping – and happy orchestrating! 🎉COMMENT
MEDIUMbenches/bench_tasks.py31 # measuring any other part of orchestration / collection of resultsCOMMENT
MEDIUM…tions/prefect-aws/tests/observers/test_ecs_observer.py2475 # Can't identify which container is the orchestration oneCOMMENT
MEDIUM…tions/prefect-aws/tests/observers/test_ecs_observer.py2501 # Custom orchestration container exits 0, sidecar exits 1.COMMENT
MEDIUM…grations/prefect-aws/prefect_aws/workers/ecs_worker.py406 # the name to treat as the "orchestration" container.STRING
MEDIUM…/integrations/prefect-aws/prefect_aws/observers/ecs.py877 # Run diagnosis when the orchestration container failed or when thereCOMMENT
MEDIUM…/integrations/prefect-aws/prefect_aws/observers/ecs.py979 # unambiguously the orchestration container (customCOMMENT
MEDIUM…/integrations/prefect-aws/prefect_aws/observers/ecs.py984 # name — can't distinguish orchestration from sidecars.COMMENT
MEDIUMsrc/prefect/engine.py106 # An engine outcome means orchestration already handled the termination.COMMENT
MEDIUMsrc/prefect/context.py477 # In-process suspension request used to stop execution at orchestrationCOMMENT
MEDIUMsrc/prefect/flow_engine.py698 # if orchestrating a run already in a pending state, force orchestration toCOMMENT
MEDIUMsrc/prefect/flow_engine.py1422 # if orchestrating a run already in a pending state, force orchestration toCOMMENT
MEDIUMsrc/prefect/task_engine.py947 # if orchestrating a run already in a pending state, force orchestration toCOMMENT
MEDIUMsrc/prefect/task_engine.py1145 # if orchestrating a run already in a pending state, force orchestration toCOMMENT
MEDIUMsrc/prefect/task_engine.py1585 # if orchestrating a run already in a pending state, force orchestration toCOMMENT
MEDIUMsrc/prefect/task_runners.py642 # and its associated orchestration client for tasks that neverCOMMENT
MEDIUMsrc/prefect/runner/_starter_engine.py160 # That responsibility stays with the Runner orchestration layer (or aCOMMENT
MEDIUMsrc/prefect/server/models/task_runs.py544 # apply orchestration rules and create the new task run stateCOMMENT
MEDIUMsrc/prefect/server/models/flow_runs.py623 # Lock the row to prevent orchestration race conditionsCOMMENT
MEDIUMsrc/prefect/server/models/flow_runs.py652 # apply orchestration rules and create the new flow run stateCOMMENT
MEDIUMsrc/prefect/server/orchestration/core_policy.py1788 # orchestration rules on the initial PENDING state.COMMENT
MEDIUMsrc/prefect/server/api/flow_runs.py130 # pass the request version to the orchestration engine to support compatibility codeCOMMENT
MEDIUMsrc/prefect/server/api/flow_runs.py845 # pass the request version to the orchestration engine to support compatibility codeCOMMENT
AI Structural Patterns222 hits · 172 pts
SeverityFileLineSnippetContext
LOWtests/test_assets.py1764CODE
LOWtests/test_tasks.py2256CODE
LOWtests/test_tasks.py5758CODE
LOWtests/test_tasks.py5775CODE
LOWtests/test_variables.py257CODE
LOWtests/input/test_actions.py296CODE
LOWtests/input/test_actions.py312CODE
LOWtests/runner/test__flow_run_executor.py40CODE
LOWtests/runtime/test_deployment.py19CODE
LOWtests/runtime/test_deployment.py245CODE
LOWtests/runtime/test_deployment.py251CODE
LOWtests/results/test_flow_results.py540CODE
LOWtests/engine/reliability/test_deadlocks.py20CODE
LOWexamples/per_worker_task_concurrency.py120CODE
LOW…grations/prefect-dbt/prefect_dbt/core/_orchestrator.py597CODE
LOW…grations/prefect-dbt/prefect_dbt/core/_orchestrator.py880CODE
LOW…grations/prefect-dbt/prefect_dbt/core/_orchestrator.py1807CODE
LOWsrc/integrations/prefect-dbt/prefect_dbt/core/runner.py158CODE
LOW…c/integrations/prefect-dbt/prefect_dbt/cli/commands.py103CODE
LOW…c/integrations/prefect-dbt/prefect_dbt/cli/commands.py156CODE
LOW…c/integrations/prefect-dbt/prefect_dbt/cli/commands.py451CODE
LOW…c/integrations/prefect-dbt/prefect_dbt/cli/commands.py477CODE
LOW…c/integrations/prefect-dbt/prefect_dbt/cli/commands.py535CODE
LOW…c/integrations/prefect-dbt/prefect_dbt/cli/commands.py561CODE
LOW…c/integrations/prefect-dbt/prefect_dbt/cli/commands.py619CODE
LOW…c/integrations/prefect-dbt/prefect_dbt/cli/commands.py645CODE
LOW…c/integrations/prefect-dbt/prefect_dbt/cli/commands.py703CODE
LOW…c/integrations/prefect-dbt/prefect_dbt/cli/commands.py729CODE
LOW…c/integrations/prefect-dbt/prefect_dbt/cli/commands.py787CODE
LOW…c/integrations/prefect-dbt/prefect_dbt/cli/commands.py813CODE
LOW…c/integrations/prefect-dbt/prefect_dbt/cli/commands.py871CODE
LOW…c/integrations/prefect-dbt/prefect_dbt/cli/commands.py897CODE
LOWsrc/integrations/prefect-dbt/tests/core/conftest.py15CODE
LOWsrc/integrations/prefect-gcp/prefect_gcp/bigquery.py44CODE
LOWsrc/integrations/prefect-gcp/prefect_gcp/bigquery.py72CODE
LOWsrc/integrations/prefect-gcp/prefect_gcp/bigquery.py202CODE
LOWsrc/integrations/prefect-gcp/prefect_gcp/bigquery.py1150CODE
LOWsrc/integrations/prefect-gcp/prefect_gcp/bigquery.py1274CODE
LOWsrc/integrations/prefect-gcp/prefect_gcp/bigquery.py1396CODE
LOWsrc/integrations/prefect-gcp/prefect_gcp/utilities.py200CODE
LOWsrc/integrations/prefect-gcp/prefect_gcp/utilities.py207CODE
LOWsrc/integrations/prefect-gcp/prefect_gcp/utilities.py214CODE
LOW…rations/prefect-gcp/prefect_gcp/models/cloud_run_v2.py169CODE
LOW…rations/prefect-gcp/prefect_gcp/models/cloud_run_v2.py222CODE
LOW…rations/prefect-gcp/prefect_gcp/models/cloud_run_v2.py248CODE
LOW…ions/prefect-gcp/tests/test_bigquery_async_dispatch.py70CODE
LOW…ions/prefect-gcp/tests/test_bigquery_async_dispatch.py113CODE
LOW…ions/prefect-gcp/tests/test_bigquery_async_dispatch.py156CODE
LOW…ions/prefect-gcp/tests/test_bigquery_async_dispatch.py201CODE
LOW…ions/prefect-gcp/tests/test_bigquery_async_dispatch.py250CODE
LOWsrc/integrations/prefect-gcp/tests/test_bigquery.py188CODE
LOWsrc/integrations/prefect-gcp/tests/test_bigquery.py204CODE
LOWsrc/integrations/prefect-gcp/tests/test_bigquery.py225CODE
LOW…prefect-gcp/tests/test_cloud_storage_async_dispatch.py56CODE
LOW…prefect-gcp/tests/test_cloud_storage_async_dispatch.py95CODE
LOW…prefect-gcp/tests/test_cloud_storage_async_dispatch.py136CODE
LOW…prefect-gcp/tests/test_cloud_storage_async_dispatch.py175CODE
LOW…prefect-gcp/tests/test_cloud_storage_async_dispatch.py218CODE
LOW…refect-gcp/tests/test_secret_manager_async_dispatch.py54CODE
LOW…refect-gcp/tests/test_secret_manager_async_dispatch.py92CODE
162 more matches not shown…
Modern Structural Boilerplate147 hits · 150 pts
SeverityFileLineSnippetContext
LOWtests/test_logging.py1017 def set_client(self, client: PrefectClient) -> None:STRING
LOWtests/workers/test_base_worker.py3773 async def update_work_pool(*args: Any, **kwargs: Any) -> None:CODE
LOWintegration-tests/test_setup_logging.py10logger = logging.getLogger(__name__)CODE
LOWscripts/generate_example_pages.py180async def update_docs_json(examples: list[Example]) -> None:STRING
LOWsrc/integrations/prefect-dbt/prefect_dbt/__init__.py19__all__ = [CODE
LOW…integrations/prefect-dbt/prefect_dbt/core/_manifest.py26logger = logging.getLogger(__name__)CODE
LOW…/integrations/prefect-dbt/prefect_dbt/core/__init__.py5__all__ = ["DbtHookContext", "PrefectDbtRunner", "PrefectDbtSettings"]CODE
LOW⚡…/integrations/prefect-dbt/prefect_dbt/core/_tracker.py128 def set_task_result(self, node_id: str, result: Any) -> None:CODE
LOW⚡…/integrations/prefect-dbt/prefect_dbt/core/_tracker.py136 def set_node_dependencies(self, node_id: str, dependencies: list[str]) -> None:CODE
LOW⚡…/integrations/prefect-dbt/prefect_dbt/core/_tracker.py144 def set_task_run_id(self, node_id: str, task_run_id: UUID) -> None:CODE
LOW⚡…/integrations/prefect-dbt/prefect_dbt/core/_tracker.py152 def set_task_run_name(self, node_id: str, task_run_name: str) -> None:CODE
LOW…c/integrations/prefect-dbt/prefect_dbt/cli/__init__.py35__all__ = [CODE
LOWsrc/integrations/prefect-gcp/prefect_gcp/decorators.py28__all__ = ["cloud_run", "vertex_ai"]CODE
LOW…tions/prefect-gcp/prefect_gcp/experimental/__init__.py12__all__ = ["cloud_run", "vertex_ai"]CODE
LOW…ons/prefect-gcp/prefect_gcp/experimental/decorators.py13__all__ = ["cloud_run", "vertex_ai"]CODE
LOW…prefect-gcp/prefect_gcp/experimental/bundles/upload.py17__all__ = ["UploadBundleToGcsOutput", "main", "upload_bundle_to_gcs"]CODE
LOW…refect-gcp/prefect_gcp/experimental/bundles/execute.py13__all__ = ["execute_bundle_from_gcs", "main"]CODE
LOW…efect-gcp/prefect_gcp/experimental/bundles/__init__.py17__all__ = ["upload_bundle_to_gcs", "execute_bundle_from_gcs"]CODE
LOW…c/integrations/prefect-email/prefect_email/__init__.py7__all__ = ["EmailServerCredentials", "SMTPServer", "SMTPType", "email_send_message"]CODE
LOW…ns/prefect-kubernetes/prefect_kubernetes/decorators.py27__all__ = ["kubernetes"]CODE
LOW…kubernetes/prefect_kubernetes/experimental/__init__.py13__all__ = ["kubernetes"]CODE
LOW…bernetes/prefect_kubernetes/experimental/decorators.py13__all__ = ["kubernetes"]CODE
LOW…integrations/prefect-github/prefect_github/__init__.py6__all__ = ["GitHubCredentials", "GitHubRepository"]CODE
LOW…tegrations/prefect-docker/prefect_docker/decorators.py21__all__ = ["docker"]CODE
LOW…prefect-docker/prefect_docker/experimental/__init__.py12__all__ = ["docker"]CODE
LOW…efect-docker/prefect_docker/experimental/decorators.py13__all__ = ["docker"]CODE
LOW…integrations/prefect-gitlab/prefect_gitlab/__init__.py6__all__ = ["GitLabRepository", "GitLabCredentials"]CODE
LOW…integrations/prefect-aws/infra/worker/service_stack.py412 def _setup_autoscaling(self) -> None:CODE
LOWsrc/integrations/prefect-aws/prefect_aws/__init__.py9__all__ = [CODE
LOWsrc/integrations/prefect-aws/prefect_aws/decorators.py51__all__ = ["ecs"]CODE
LOW…tions/prefect-aws/prefect_aws/experimental/__init__.py12__all__ = ["ecs"]CODE
LOW…ons/prefect-aws/prefect_aws/experimental/decorators.py13__all__ = ["ecs"]CODE
LOW…prefect-aws/prefect_aws/experimental/bundles/upload.py17__all__ = ["UploadResult", "main", "upload_bundle_to_s3"]CODE
LOW…refect-aws/prefect_aws/experimental/bundles/execute.py18__all__ = [CODE
LOW…tegrations/prefect-aws/prefect_aws/workers/__init__.py3__all__ = ["ECSWorker"]CODE
LOW…ntegrations/prefect-aws/prefect_aws/bundles/execute.py32logger = logging.getLogger(__name__)CODE
LOW…ations/prefect-bitbucket/prefect_bitbucket/__init__.py8__all__ = ["BitBucketCredentials", "BitBucketRepository"]CODE
LOW…egrations/prefect-redis/prefect_redis/lease_storage.py22logger = logging.getLogger(__name__)CODE
LOW…c/integrations/prefect-azure/prefect_azure/__init__.py12__all__ = [CODE
LOW…integrations/prefect-azure/prefect_azure/decorators.py27__all__ = ["azure_container_instance"]CODE
LOW…s/prefect-azure/prefect_azure/experimental/__init__.py12__all__ = ["azure_container_instance"]CODE
LOW…prefect-azure/prefect_azure/experimental/decorators.py13__all__ = ["azure_container_instance"]CODE
LOW…ect-azure/prefect_azure/experimental/bundles/upload.py17__all__ = [CODE
LOW…ct-azure/prefect_azure/experimental/bundles/execute.py16__all__ = ["execute_bundle_from_azure_blob_storage", "main"]CODE
LOW…t-azure/prefect_azure/experimental/bundles/__init__.py19__all__ = [CODE
LOW…fect-azure/prefect_azure/workers/container_instance.py137logger = logging.getLogger(__name__)CODE
LOWsrc/prefect/plugins.py40__all__ = [CODE
LOWsrc/prefect/__init__.py176__all__ = [CODE
LOWsrc/prefect/context.py761 def update_tracked_assets(self) -> None:CODE
LOWsrc/prefect/automations.py45__all__ = [CODE
LOWsrc/prefect/main.py66__all__ = [CODE
LOWsrc/prefect/blocks/fields.py3__all__ = ["SecretDict"]CODE
LOWsrc/prefect/blocks/__init__.py7__all__ = ["notifications", "system", "webhook"]CODE
LOWsrc/prefect/_internal/control_listener.py101def _set_intent(value: Intent) -> None:CODE
LOWsrc/prefect/_internal/compatibility/backports.py11__all__ = ["tomllib"]CODE
LOWsrc/prefect/_internal/plugins/startup.py126__all__ = ["run_startup_hooks", "HookContext", "HookSpec", "SetupResult"]CODE
LOWsrc/prefect/_internal/concurrency/calls.py291 def set_timeout(self, timeout: Optional[float] = None) -> None:CODE
LOWsrc/prefect/_internal/concurrency/calls.py302 def set_runner(self, portal: "Portal") -> None:CODE
LOWsrc/prefect/_internal/analytics/__init__.py73__all__ = [CODE
LOWsrc/prefect/settings/__init__.py46__all__ = [ # noqa: F822CODE
87 more matches not shown…
Verbosity Indicators56 hits · 90 pts
SeverityFileLineSnippetContext
LOW⚡…omations/automations-wizard/automation-wizard.test.tsx639 // Step 1: TriggerCOMMENT
LOW⚡…omations/automations-wizard/automation-wizard.test.tsx645 // Step 2: ActionsCOMMENT
LOW⚡…omations/automations-wizard/automation-wizard.test.tsx655 // Step 3: DetailsCOMMENT
LOW⚡examples/resume_flow_run_on_pr_merge.py26# ## Step 1: Create a Prefect webhookCOMMENT
LOW⚡examples/resume_flow_run_on_pr_merge.py51# ## Step 2: Configure GitHub webhookCOMMENT
LOW⚡examples/resume_flow_run_on_pr_merge.py61# ## Step 3: Create an automationCOMMENT
LOWexamples/atproto_dashboard_with_prefect_assets.py67# ### Step 1: Fetch Raw DataCOMMENT
LOW⚡examples/atproto_dashboard_with_prefect_assets.py88# ### Step 2: Process the DataCOMMENT
LOWexamples/atproto_dashboard_with_prefect_assets.py116# ### Step 3: Create AnalyticsCOMMENT
LOW⚡…ions/prefect-dbt/tests/core/test_orchestrator_cache.py1264 # Step 1: full build — populate cacheCOMMENT
LOW⚡…ions/prefect-dbt/tests/core/test_orchestrator_cache.py1267 # Step 2: change root SQLCOMMENT
LOW⚡…ions/prefect-dbt/tests/core/test_orchestrator_cache.py1270 # Step 3: selective run — only leafCOMMENT
LOW⚡…ions/prefect-dbt/tests/core/test_orchestrator_cache.py1277 # Step 4: full build — root/mid rebuild, leaf must NOT cache-hitCOMMENT
LOW⚡…ions/prefect-dbt/tests/core/test_orchestrator_cache.py1283 # Step 1: all succeedCOMMENT
LOW⚡…ions/prefect-dbt/tests/core/test_orchestrator_cache.py1287 # Step 3: leaf re-executes (cache miss — upstream key changed)COMMENT
LOW⚡…ions/prefect-dbt/tests/core/test_orchestrator_cache.py1290 # Step 4: root/mid re-execute (new file content); leaf must alsoCOMMENT
LOW⚡…ions/prefect-dbt/tests/core/test_orchestrator_cache.py1315 # Step 1: change root SQLCOMMENT
LOW⚡…ions/prefect-dbt/tests/core/test_orchestrator_cache.py1318 # Step 2: selective run — only leafCOMMENT
LOW⚡…ions/prefect-dbt/tests/core/test_orchestrator_cache.py1325 # Step 3: selective run — only root and mid (rebuild upstream)COMMENT
LOW⚡…ions/prefect-dbt/tests/core/test_orchestrator_cache.py1332 # Step 4: selective run — only leaf againCOMMENT
LOW⚡…ions/prefect-dbt/tests/core/test_orchestrator_cache.py1343 # Step 2: leaf executes (cache miss)COMMENT
LOW⚡…ions/prefect-dbt/tests/core/test_orchestrator_cache.py1345 # Step 3: root and mid executeCOMMENT
LOW⚡…ions/prefect-dbt/tests/core/test_orchestrator_cache.py1348 # Step 4: leaf must re-execute (NOT cache-hit from step 2)COMMENT
LOW⚡…ions/prefect-dbt/tests/core/test_orchestrator_cache.py1409 # Step 1: full build — populates execution state for all nodesCOMMENT
LOW⚡…ions/prefect-dbt/tests/core/test_orchestrator_cache.py1412 # Step 2: change A's SQLCOMMENT
LOW⚡…ions/prefect-dbt/tests/core/test_orchestrator_cache.py1415 # Step 3: selective run — only CCOMMENT
LOW⚡…ions/prefect-dbt/tests/core/test_orchestrator_cache.py1422 # Step 4: selective run — only DCOMMENT
LOW⚡…ions/prefect-dbt/tests/core/test_orchestrator_cache.py1433 # Step 1: all succeedCOMMENT
LOW⚡…ions/prefect-dbt/tests/core/test_orchestrator_cache.py1435 # Step 3: C executes (salted upstream keys since A changed)COMMENT
LOW⚡…ions/prefect-dbt/tests/core/test_orchestrator_cache.py1437 # Step 4: D must re-execute, NOT cache-hit, because C wasCOMMENT
LOW⚡…ions/prefect-dbt/tests/core/test_orchestrator_cache.py1515 # Step 1: full build — all succeed, execution state populatedCOMMENT
LOW⚡…ions/prefect-dbt/tests/core/test_orchestrator_cache.py1518 # Step 2: change mid's SQL so the cache key changes,COMMENT
LOW…ntegrations/prefect-slack/prefect_slack/credentials.py107 # failures. This is not available in older versions, so we need to check if theCOMMENT
LOW…integrations/prefect-kubernetes/tests/test_observer.py2030 # Step 1: Pod is Pending (no issues yet)COMMENT
LOW…integrations/prefect-kubernetes/tests/test_observer.py2064 # Step 2: Pod is still Pending but now has ImagePullBackOffCOMMENT
LOW…integrations/prefect-kubernetes/tests/test_observer.py2137 # Step 1: Pod is Pending and UnschedulableCOMMENT
LOW…integrations/prefect-kubernetes/tests/test_observer.py2172 # Step 2: Pod transitions to Running (problem resolved)COMMENT
LOW…integrations/prefect-kubernetes/tests/test_observer.py2227 # Step 1: CrashLoopBackOffCOMMENT
LOW…integrations/prefect-kubernetes/tests/test_observer.py2260 # Step 2: Pod terminates with OOMKilledCOMMENT
LOW⚡src/integrations/prefect-redis/tests/test_ordering.py416 # Step 1: Follower parks itselfCOMMENT
LOW⚡src/integrations/prefect-redis/tests/test_ordering.py423 # Step 2: Leader completes, claiming the followerCOMMENT
LOW⚡src/integrations/prefect-redis/tests/test_ordering.py431 # Step 3: Simulate follower's double-check pathCOMMENT
LOW⚡src/integrations/prefect-redis/tests/test_ordering.py443 # Step 4: Verify event data is STILL available for the leaderCOMMENT
LOW⚡src/prefect/runner/runner.py1661 # Step 1: clientCOMMENT
LOW⚡src/prefect/runner/runner.py1708 # Step 4: Construct client-dependent services after client is startedCOMMENT
LOW⚡src/prefect/runner/runner.py1759 # Step 5: runs_task_groupCOMMENT
LOWsrc/prefect/runner/runner.py1815 # Step 6: Enter observer context manager lastCOMMENT
LOW⚡src/prefect/runner/_flow_run_executor.py179 # Step 6: snapshot terminal evidence before process cleanup unregistersCOMMENT
LOW⚡src/prefect/runner/_flow_run_executor.py185 # Step 7: terminal evidence proves the attempt was handled regardless ofCOMMENT
LOW⚡src/prefect/runner/_flow_run_executor.py322 # Step 4: CancellationManagerCOMMENT
LOW⚡src/prefect/runner/_flow_run_executor.py332 # Step 5: Observer enters LAST (starts websocket/polling)COMMENT
LOWsrc/prefect/runner/_flow_run_executor.py147 # Step 2: already-cancelled precheckCOMMENT
LOWsrc/prefect/runner/_flow_run_executor.py205 # Step 8: run crashed hooksCOMMENT
LOWsrc/prefect/runner/_flow_run_executor.py273 # Step 1: clientCOMMENT
LOWsrc/prefect/runner/_flow_run_executor.py296 # Step 2: ProcessManager with observer add/remove callbacksCOMMENT
LOWsrc/prefect/runner/_flow_run_executor.py307 # Step 3: StateProposer, placeholder HookRunner, EventEmitterCOMMENT
Structural Annotation Overuse55 hits · 88 pts
SeverityFileLineSnippetContext
LOW⚡…omations/automations-wizard/automation-wizard.test.tsx639 // Step 1: TriggerCOMMENT
LOW⚡…omations/automations-wizard/automation-wizard.test.tsx645 // Step 2: ActionsCOMMENT
LOW⚡…omations/automations-wizard/automation-wizard.test.tsx655 // Step 3: DetailsCOMMENT
LOW⚡examples/resume_flow_run_on_pr_merge.py26# ## Step 1: Create a Prefect webhookCOMMENT
LOW⚡examples/resume_flow_run_on_pr_merge.py51# ## Step 2: Configure GitHub webhookCOMMENT
LOW⚡examples/resume_flow_run_on_pr_merge.py61# ## Step 3: Create an automationCOMMENT
LOWexamples/atproto_dashboard_with_prefect_assets.py67# ### Step 1: Fetch Raw DataCOMMENT
LOW⚡examples/atproto_dashboard_with_prefect_assets.py88# ### Step 2: Process the DataCOMMENT
LOWexamples/atproto_dashboard_with_prefect_assets.py116# ### Step 3: Create AnalyticsCOMMENT
LOW⚡…ions/prefect-dbt/tests/core/test_orchestrator_cache.py1264 # Step 1: full build — populate cacheCOMMENT
LOW⚡…ions/prefect-dbt/tests/core/test_orchestrator_cache.py1267 # Step 2: change root SQLCOMMENT
LOW⚡…ions/prefect-dbt/tests/core/test_orchestrator_cache.py1270 # Step 3: selective run — only leafCOMMENT
LOW⚡…ions/prefect-dbt/tests/core/test_orchestrator_cache.py1277 # Step 4: full build — root/mid rebuild, leaf must NOT cache-hitCOMMENT
LOW⚡…ions/prefect-dbt/tests/core/test_orchestrator_cache.py1283 # Step 1: all succeedCOMMENT
LOW⚡…ions/prefect-dbt/tests/core/test_orchestrator_cache.py1287 # Step 3: leaf re-executes (cache miss — upstream key changed)COMMENT
LOW⚡…ions/prefect-dbt/tests/core/test_orchestrator_cache.py1290 # Step 4: root/mid re-execute (new file content); leaf must alsoCOMMENT
LOW⚡…ions/prefect-dbt/tests/core/test_orchestrator_cache.py1315 # Step 1: change root SQLCOMMENT
LOW⚡…ions/prefect-dbt/tests/core/test_orchestrator_cache.py1318 # Step 2: selective run — only leafCOMMENT
LOW⚡…ions/prefect-dbt/tests/core/test_orchestrator_cache.py1325 # Step 3: selective run — only root and mid (rebuild upstream)COMMENT
LOW⚡…ions/prefect-dbt/tests/core/test_orchestrator_cache.py1332 # Step 4: selective run — only leaf againCOMMENT
LOW⚡…ions/prefect-dbt/tests/core/test_orchestrator_cache.py1343 # Step 2: leaf executes (cache miss)COMMENT
LOW⚡…ions/prefect-dbt/tests/core/test_orchestrator_cache.py1345 # Step 3: root and mid executeCOMMENT
LOW⚡…ions/prefect-dbt/tests/core/test_orchestrator_cache.py1348 # Step 4: leaf must re-execute (NOT cache-hit from step 2)COMMENT
LOW⚡…ions/prefect-dbt/tests/core/test_orchestrator_cache.py1409 # Step 1: full build — populates execution state for all nodesCOMMENT
LOW⚡…ions/prefect-dbt/tests/core/test_orchestrator_cache.py1412 # Step 2: change A's SQLCOMMENT
LOW⚡…ions/prefect-dbt/tests/core/test_orchestrator_cache.py1415 # Step 3: selective run — only CCOMMENT
LOW⚡…ions/prefect-dbt/tests/core/test_orchestrator_cache.py1422 # Step 4: selective run — only DCOMMENT
LOW⚡…ions/prefect-dbt/tests/core/test_orchestrator_cache.py1433 # Step 1: all succeedCOMMENT
LOW⚡…ions/prefect-dbt/tests/core/test_orchestrator_cache.py1435 # Step 3: C executes (salted upstream keys since A changed)COMMENT
LOW⚡…ions/prefect-dbt/tests/core/test_orchestrator_cache.py1437 # Step 4: D must re-execute, NOT cache-hit, because C wasCOMMENT
LOW⚡…ions/prefect-dbt/tests/core/test_orchestrator_cache.py1515 # Step 1: full build — all succeed, execution state populatedCOMMENT
LOW⚡…ions/prefect-dbt/tests/core/test_orchestrator_cache.py1518 # Step 2: change mid's SQL so the cache key changes,COMMENT
LOW…integrations/prefect-kubernetes/tests/test_observer.py2030 # Step 1: Pod is Pending (no issues yet)COMMENT
LOW…integrations/prefect-kubernetes/tests/test_observer.py2064 # Step 2: Pod is still Pending but now has ImagePullBackOffCOMMENT
LOW…integrations/prefect-kubernetes/tests/test_observer.py2137 # Step 1: Pod is Pending and UnschedulableCOMMENT
LOW…integrations/prefect-kubernetes/tests/test_observer.py2172 # Step 2: Pod transitions to Running (problem resolved)COMMENT
LOW…integrations/prefect-kubernetes/tests/test_observer.py2227 # Step 1: CrashLoopBackOffCOMMENT
LOW…integrations/prefect-kubernetes/tests/test_observer.py2260 # Step 2: Pod terminates with OOMKilledCOMMENT
LOW⚡src/integrations/prefect-redis/tests/test_ordering.py416 # Step 1: Follower parks itselfCOMMENT
LOW⚡src/integrations/prefect-redis/tests/test_ordering.py423 # Step 2: Leader completes, claiming the followerCOMMENT
LOW⚡src/integrations/prefect-redis/tests/test_ordering.py431 # Step 3: Simulate follower's double-check pathCOMMENT
LOW⚡src/integrations/prefect-redis/tests/test_ordering.py443 # Step 4: Verify event data is STILL available for the leaderCOMMENT
LOW⚡src/prefect/runner/runner.py1661 # Step 1: clientCOMMENT
LOW⚡src/prefect/runner/runner.py1708 # Step 4: Construct client-dependent services after client is startedCOMMENT
LOW⚡src/prefect/runner/runner.py1759 # Step 5: runs_task_groupCOMMENT
LOWsrc/prefect/runner/runner.py1815 # Step 6: Enter observer context manager lastCOMMENT
LOW⚡src/prefect/runner/_flow_run_executor.py179 # Step 6: snapshot terminal evidence before process cleanup unregistersCOMMENT
LOW⚡src/prefect/runner/_flow_run_executor.py185 # Step 7: terminal evidence proves the attempt was handled regardless ofCOMMENT
LOW⚡src/prefect/runner/_flow_run_executor.py322 # Step 4: CancellationManagerCOMMENT
LOW⚡src/prefect/runner/_flow_run_executor.py332 # Step 5: Observer enters LAST (starts websocket/polling)COMMENT
LOWsrc/prefect/runner/_flow_run_executor.py147 # Step 2: already-cancelled precheckCOMMENT
LOWsrc/prefect/runner/_flow_run_executor.py205 # Step 8: run crashed hooksCOMMENT
LOWsrc/prefect/runner/_flow_run_executor.py273 # Step 1: clientCOMMENT
LOWsrc/prefect/runner/_flow_run_executor.py296 # Step 2: ProcessManager with observer add/remove callbacksCOMMENT
LOWsrc/prefect/runner/_flow_run_executor.py307 # Step 3: StateProposer, placeholder HookRunner, EventEmitterCOMMENT
AI Slop Vocabulary32 hits · 81 pts
SeverityFileLineSnippetContext
MEDIUMui/package-lock.json6121 "resolved": "https://registry.npmjs.org/robust-predicates/-/robust-predicates-3.0.2.tgz",CODE
MEDIUMui/package-lock.json11386 "resolved": "https://registry.npmjs.org/robust-predicates/-/robust-predicates-3.0.2.tgz",CODE
MEDIUMtests/testing/test_utilites.py224 # Use test harness which starts background threadsCOMMENT
MEDIUMtests/testing/test_utilites.py241 Regression test for issue #19342 - running the test harness multiple timesSTRING
MEDIUMtests/testing/test_utilites.py254 # Run the test harness twice - the second run would fail with the bugCOMMENT
MEDIUMtests/public/flows/test_flow_crashes.py267 # this here, but we do not have robust testing utilities for deployed runs yet.COMMENT
LOWtests/events/client/test_events_subscriber.py103 # The base subscriber for OSS will just use the API URL, which is set to aCOMMENT
LOWtests/logging/test_logs_subscriber.py127 # The base subscriber for OSS will just use the API URL, which is set to aCOMMENT
MEDIUM⚡ui-v2/src/routes/runs/index.tsx477 // Use useQuery for paginated flow runs to leverage placeholderData: keepPreviousDataCOMMENT
MEDIUM⚡ui-v2/src/routes/runs/index.tsx483 // Use useQuery for paginated task runs to leverage placeholderData: keepPreviousDataCOMMENT
MEDIUM⚡ui-v2/src/routes/runs/index.tsx488 // Use useQuery for flow run history (scatter plot) to leverage placeholderData: keepPreviousDataCOMMENT
MEDIUMui-v2/src/routes/flows/index.tsx105 // Use useQuery for paginated flows to leverage placeholderData: keepPreviousDataCOMMENT
MEDIUMui-v2/src/routes/flows/flow.$id.tsx359 // Use useQuery for deployments to leverage placeholderData: keepPreviousDataCOMMENT
MEDIUMui-v2/src/routes/flows/flow.$id.tsx384 // Use useQuery for paginated flow runsto leverage placeholderData: keepPreviousDataCOMMENT
MEDIUMexamples/run_dbt_with_prefect.py19# The result? Your analytics team gets reliable, observable data pipelines that leverage the strengths of both platformsCOMMENT
MEDIUMsrc/integrations/prefect-dbt/tests/core/test_tracker.py491 """Test a comprehensive workflow with multiple nodes and dependencies."""STRING
LOW…grations/prefect-aws/prefect_aws/workers/ecs_worker.py1424 # Ensure the key is removed entirely, not just set to NoneSTRING
LOWsrc/integrations/prefect-azure/tests/test_aci_worker.py447 # If no entrypoint is provided, just use the commandCOMMENT
LOWsrc/prefect/flow_engine.py2301 # parameters, in that case just return the parameters as-is.COMMENT
LOWsrc/prefect/_internal/schemas/validators.py372 # rrule would just create different garbage. The real validatorCOMMENT
MEDIUMsrc/prefect/_internal/concurrency/event_loop.py56 # result of the call. We wrap the call with a future to facilitate retrieval.COMMENT
MEDIUMsrc/prefect/server/models/block_schemas.py658 # ones first (and to facilitate getting the newest one with `limit=1`).COMMENT
LOWsrc/prefect/server/models/work_queues.py93 # work pool was created. We can just return it.COMMENT
LOWsrc/prefect/_sdk/schema_converter.py93 # Handle allOf (intersection - we just use the first one with useful info)COMMENT
MEDIUMsrc/prefect/_sdk/renderer.py435 # Use importlib.resources.files() for robust package resource accessCOMMENT
LOWsrc/prefect/utilities/asyncutils/__init__.py402 # In a sync context and there is no event loop; just create an event loopCOMMENT
LOWsrc/prefect/utilities/templating/__init__.py174 # If there are no values, we can just use the templateCOMMENT
MEDIUMsrc/prefect/testing/utilities.py170 # it after the harness exits, then register the harness server underCOMMENT
MEDIUM⚡src/prefect/testing/utilities.py190 # Also expose the harness settings as the process-global settings contextCOMMENT
MEDIUM⚡src/prefect/testing/utilities.py192 # harness started, such as a `unittest.IsolatedAsyncioTestCase` that wasCOMMENT
MEDIUM⚡src/prefect/testing/utilities.py193 # constructed at collection time, uses the harness server.COMMENT
LOWsrc/prefect/bundles/_ignore_filter.py208 # Can't make relative - just use nameCOMMENT
Over-Commented Block77 hits · 76 pts
SeverityFileLineSnippetContext
LOWtests/conftest.py41# fires a `UserWarning: The NumPy module was reloaded`, which ourCOMMENT
LOWtests/events/server/triggers/test_flow_run_slas.py801COMMENT
LOWdocs/.vale.ini21mdx = mdCOMMENT
LOW…ork-pool-page-header/work-pool-page-header.stories.tsx101 },COMMENT
LOW…ork-pool-page-header/work-pool-page-header.stories.tsx121// ...mockWorkPool,COMMENT
LOWui-v2/src/hooks/use-debounce-callback.tsx61// type SearchProps {COMMENT
LOWui-v2/src/hooks/use-debounce-callback.tsx81// />COMMENT
LOWexamples/hello_world.py1# ---COMMENT
LOWexamples/hello_world.py61 hello(name)COMMENT
LOWexamples/hello_world.py81# For instance, change the greeting message in the `hello` function to a different message and run the flow again.COMMENT
LOWexamples/hello_world.py101#COMMENT
LOWexamples/ai_data_analyst_with_pydantic_ai.py1# ---COMMENT
LOWexamples/ai_data_analyst_with_pydantic_ai.py21# 3. Uses Python tools to calculate statistics and detect anomaliesCOMMENT
LOWexamples/ai_data_analyst_with_pydantic_ai.py281 print("❌ Error: OPENAI_API_KEY environment variable not set")COMMENT
LOWexamples/ai_data_analyst_with_pydantic_ai.py301# ```bashCOMMENT
LOWexamples/ai_data_analyst_with_pydantic_ai.py321# - All operations respect 60s timeoutCOMMENT
LOWexamples/ai_data_analyst_with_pydantic_ai.py341# 4. Trigger a run from the UI (http://localhost:4200) or CLICOMMENT
LOWexamples/run_api_sourced_etl.py1# ---COMMENT
LOWexamples/run_api_sourced_etl.py21# In this article you will:COMMENT
LOWexamples/run_api_sourced_etl.py41#COMMENT
LOWexamples/run_api_sourced_etl.py141# ## Run it!COMMENT
LOWexamples/run_api_sourced_etl.py161# 4. The CSV was written to disk and a preview printed locally (the flow's `log_prints=True` flag logs messages inside tCOMMENT
LOWexamples/run_dbt_with_prefect.py1# ---COMMENT
LOWexamples/run_dbt_with_prefect.py21# > **Note**: This example uses **dbt Core** (the open-source CLI). For dbt Cloud integration, see the [dbt Cloud guide]COMMENT
LOWexamples/run_dbt_with_prefect.py41# ### Running the example locallyCOMMENT
LOWexamples/run_dbt_with_prefect.py261 dbt_flow()COMMENT
LOWexamples/run_dbt_with_prefect.py281#COMMENT
LOWexamples/resume_flow_run_on_pr_merge.py1# ---COMMENT
LOWexamples/resume_flow_run_on_pr_merge.py21#COMMENT
LOWexamples/resume_flow_run_on_pr_merge.py41# }COMMENT
LOWexamples/resume_flow_run_on_pr_merge.py61# ## Step 3: Create an automationCOMMENT
LOWexamples/resume_flow_run_on_pr_merge.py101if __name__ == "__main__":COMMENT
LOWexamples/resume_flow_run_on_pr_merge.py121# 2. **Webhook transforms event**: The Jinja template extracts the flow run ID from the PR body and creates a Prefect evCOMMENT
LOWexamples/atproto_dashboard_with_prefect_assets.py1# ---COMMENT
LOWexamples/atproto_dashboard_with_prefect_assets.py21# * **`@materialize` decorator** – Transform functions into versioned, cacheable data assetsCOMMENT
LOWexamples/atproto_dashboard_with_prefect_assets.py41# # Follow README for setup and configurationCOMMENT
LOWexamples/atproto_dashboard_with_prefect_assets.py181COMMENT
LOWexamples/atproto_dashboard_with_prefect_assets.py201# 3. **Storage Integration**COMMENT
LOWexamples/atproto_dashboard_with_prefect_assets.py221# - dbt transformations with DuckDBCOMMENT
LOWexamples/ai_database_cleanup_with_approval.py1# ---COMMENT
LOWexamples/ai_database_cleanup_with_approval.py21# [github.com/zzstoatzz/prefect-mcp-server-demo](https://github.com/zzstoatzz/prefect-mcp-server-demo)COMMENT
LOWexamples/simple_web_scraper.py1# ---COMMENT
LOWexamples/simple_web_scraper.py21#COMMENT
LOWexamples/simple_web_scraper.py121# 2. Applied retry logic to the network call – a flaky connection would auto-retry up to 3 times.COMMENT
LOWexamples/per_worker_task_concurrency.py1# ---COMMENT
LOWexamples/per_worker_task_concurrency.py21# ## Example: Image processing with ML inferenceCOMMENT
LOWexamples/per_worker_task_concurrency.py121COMMENT
LOWexamples/per_worker_task_concurrency.py141# prefect work-pool create ml-pool --type processCOMMENT
LOWexamples/per_worker_task_concurrency.py161#COMMENT
LOWexamples/per_worker_task_concurrency.py181# 1. **GCLs are server-coordinated** — The Prefect server tracks who holds whatCOMMENT
LOWscripts/wait-for-healthy-container.sh1#!/usr/bin/env bashCOMMENT
LOW.github/workflows/codeql-analysis.yml21 # │ ┌───────────── hour (0 - 23)COMMENT
LOW.github/workflows/codspeed-benchmarks.yaml61 with:COMMENT
LOW…egrations/prefect-dbt/prefect_dbt/cloud/credentials.py141 # "label": "Total Revenue ($)",COMMENT
LOW…integrations/prefect-dask/prefect_dask/task_runners.py21 for number in range(highest_number):COMMENT
LOW…efect-aws/prefect_aws/experimental/bundles/__init__.py1# Eagerly import the legacy submodules so thatCOMMENT
LOW…c/integrations/prefect-ray/prefect_ray/task_runners.py21 for number in range(highest_number):COMMENT
LOW…c/integrations/prefect-redis/prefect_redis/ordering.py41# How long we'll wait for an in-flight event to be processed for follower handling,COMMENT
LOW…c/integrations/prefect-redis/prefect_redis/ordering.py281 # 3. Follower checks processing -> FalseCOMMENT
LOW…c/integrations/prefect-redis/prefect_redis/ordering.py341 async with self.event_is_processing(event) as completion:COMMENT
17 more matches not shown…
Fake / Example Data50 hits · 46 pts
SeverityFileLineSnippetContext
LOW⚡tests/cli/test_work_pool.py752 "Hello world lorem ipsum",CODE
LOW⚡tests/cli/test_work_pool.py760 assert client_res.description == "Hello world lorem ipsum"CODE
LOWtests/cli/cloud/test_cloud.py1024 PREFECT_API_KEY: "fake-key",CODE
LOWtests/cli/cloud/test_cloud.py1045 PREFECT_API_KEY: "fake-key",CODE
LOWtests/cli/cloud/test_cloud.py1075 PREFECT_API_KEY: "fake-key",CODE
LOWtests/cli/cloud/test_cloud.py1096 PREFECT_API_KEY: "fake-key",CODE
LOWtests/cli/cloud/test_cloud.py1123 PREFECT_API_KEY: "fake-key",CODE
LOWtests/cli/cloud/test_cloud.py1144 PREFECT_API_KEY: "fake-key",CODE
LOWtests/cli/cloud/test_cloud.py1176 PREFECT_API_KEY: "fake-key",CODE
LOWtests/cli/cloud/test_cloud.py1234 PREFECT_API_KEY: "fake-key",CODE
LOWtests/cli/cloud/test_cloud.py1309 PREFECT_API_KEY: "fake-key",CODE
LOWtests/cli/cloud/test_cloud.py1345 PREFECT_API_KEY: "fake-key",CODE
LOWtests/client/test_base_client.py1190 "Prefect-Csrf-Token": "fake-token",CODE
LOWtests/client/test_base_client.py1292 "Prefect-Csrf-Token": "fake-token",CODE
LOWintegration-tests/test_task_worker.py22CLIENT_DUMMY_API_KEY = "dummy-key-should-be-ignored"CODE
LOWui-v2/src/components/schemas/schema-form.test.tsx101 name: { type: "string", default: "John Doe" },CODE
LOWui-v2/src/components/schemas/schema-form.test.tsx119 expect(spy).toHaveBeenCalledWith({ name: "John Doe" });CODE
LOWui-v2/src/components/schemas/readme.md79By default, the form will use the `default` property to set the initial value of all fields when the form is rendered. ICODE
LOWui-v2/src/components/schemas/readme.md85 name: { type: "string", title: "Name", default: "John Doe" },CODE
LOW…/src/components/schemas/stories/properties.stories.tsx80 default: "John Doe",CODE
LOW…/src/components/schemas/stories/properties.stories.tsx588 name: "John Doe",CODE
LOW…uns/flow-run-details-page/flow-run-details.stories.tsx25 display_value: "John Doe",CODE
LOW…w-runs/flow-run-details-page/flow-run-details.test.tsx135 display_value: "John Doe",CODE
LOW…w-runs/flow-run-details-page/flow-run-details.test.tsx145 expect(screen.getByText("John Doe")).toBeInTheDocument();CODE
LOW⚡…c/integrations/prefect-gcp/tests/test_cloud_storage.py270 "name": ["John Doe", "Jane Doe", "Johny", "Jane"],CODE
LOW⚡…c/integrations/prefect-gcp/tests/test_cloud_storage.py270 "name": ["John Doe", "Jane Doe", "Johny", "Jane"],CODE
LOW⚡src/integrations/prefect-docker/tests/test_worker.py1693 "prefect.resource.name": "fake-name",CODE
LOW⚡src/integrations/prefect-docker/tests/test_worker.py1702 "prefect.resource.name": "fake-name",CODE
LOW⚡src/integrations/prefect-docker/tests/test_worker.py1711 "prefect.resource.name": "fake-name",CODE
LOWsrc/integrations/prefect-docker/tests/test_worker.py68 "Name": "fake-name",CODE
LOWsrc/integrations/prefect-docker/tests/test_worker.py1485 "Docker container fake-name was marked for removal before logs "CODE
LOWsrc/integrations/prefect-docker/tests/test_worker.py1496 assert "Docker container fake-name was marked for removal" in caplog.textCODE
LOWsrc/integrations/prefect-docker/tests/test_worker.py1512 " fake-name." in caplog.textCODE
LOWsrc/integrations/prefect-docker/tests/test_worker.py1553 "Docker container fake-name was removed before logs could be retrieved"CODE
LOWsrc/integrations/prefect-docker/tests/test_worker.py1585 "Docker container fake-name was removed before we could wait for its completion"CODE
LOWsrc/integrations/prefect-docker/tests/test_worker.py1639 " fake-name." in caplog.textCODE
LOW…rations/prefect-docker/tests/deployments/test_steps.py55 "Name": "fake-name",CODE
LOWsrc/integrations/prefect-aws/tests/test_plugins.py63 mock_client.generate_db_auth_token.return_value = "fake-token"CODE
LOWsrc/integrations/prefect-aws/tests/test_plugins.py76 assert token == "fake-token"CODE
LOWsrc/integrations/prefect-aws/tests/test_utilities.py44 {"op": "add", "path": "/contact/address", "value": "123 Main St"},CODE
LOW…tegrations/prefect-aws/tests/deployments/test_steps.py398 "minio_root_user": "fake_user",CODE
LOWsrc/integrations/prefect-aws/prefect_aws/utilities.py89 {"op": "add", "path": "/contact/address", "value": "123 Main St"},STRING
LOW⚡…tegrations/prefect-bitbucket/tests/test_credentials.py57 token="dummy-token", username="devops.team+ci@scalefocus.com"CODE
LOW…s/prefect-databricks/prefect_databricks/models/jobs.py862 examples=[{"age": 35, "name": "John Doe"}],CODE
LOW…s/prefect-databricks/prefect_databricks/models/jobs.py2535 examples=[{"age": 35, "name": "John Doe"}],CODE
LOW…s/prefect-databricks/prefect_databricks/models/jobs.py3913 "base_parameters": {"age": "35", "name": "John Doe"},CODE
LOW…s/prefect-databricks/prefect_databricks/models/jobs.py4342 "base_parameters": {"age": "35", "name": "John Doe"},CODE
LOW…integrations/prefect-redis/prefect_redis/connection.py157 authority = f"{userinfo}@placeholder" if userinfo else "placeholder"CODE
LOW⚡src/integrations/prefect-azure/tests/test_plugins.py33 token.token = "fake-token"CODE
LOW⚡src/integrations/prefect-azure/tests/test_plugins.py74 assert token == "fake-token"CODE
Overly Generic Function Names20 hits · 20 pts
SeverityFileLineSnippetContext
LOWtests/blocks/test_core.py1797 def do_stuff(self, thing: str):CODE
LOW⚡tests/_internal/compatibility/test_async_dispatch.py23 def my_function() -> None:CODE
LOW⚡tests/_internal/compatibility/test_async_dispatch.py36 def my_function() -> None:CODE
LOW⚡tests/_internal/compatibility/test_async_dispatch.py50 def my_function() -> None:CODE
LOW⚡tests/_internal/compatibility/test_async_dispatch.py73 def my_method(cls) -> str:CODE
LOW⚡tests/_internal/compatibility/test_async_dispatch.py90 def my_method(cls) -> str:CODE
LOW⚡tests/_internal/compatibility/test_async_dispatch.py106 def my_function() -> None:CODE
LOW⚡tests/_internal/compatibility/test_async_dispatch.py118 def my_function() -> None:CODE
LOWtests/_internal/compatibility/test_async_dispatch.py234 def my_function() -> str:CODE
LOWtests/_internal/compatibility/test_async_dispatch.py255 def my_function() -> str:CODE
LOWtests/_internal/compatibility/test_async_dispatch.py276 def my_function() -> str:CODE
LOWtests/_internal/compatibility/test_async_dispatch.py297 def my_function() -> str:CODE
LOWtests/_internal/pydantic/test_validated_func.py506 def process_data(model: MyModel, count: int = 0) -> dict:CODE
LOWtests/telemetry/test_run_telemetry.py55async def run_task(task, task_run_id, parameters, engine_type):CODE
LOWui-v2/public/mockServiceWorker.js122async function handleRequest(event, requestId) {CODE
LOW⚡examples/atproto_dashboard_with_prefect_assets.py97def process_data(raw_data: dict[str, Any]) -> dict[str, Any]:CODE
LOW…/integrations/prefect-dbt/prefect_dbt/core/_tracker.py170 def run_task():CODE
LOWsrc/prefect/task_engine.py1858def run_task(CODE
LOWsrc/prefect/task_engine.py1871def run_task(CODE
LOWsrc/prefect/task_engine.py1883def run_task(CODE
AI Response Leakage1 hit · 8 pts
SeverityFileLineSnippetContext
HIGHexamples/simple_web_scraper.py15# In this example you will:COMMENT
Magic Placeholder Names1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHsrc/integrations/prefect-aws/README.md200 -e PREFECT_API_KEY=your-api-key \CODE