Skip to content

Commit

Permalink
Temporarily disable passing worker labels to flow run (#16339)
Browse files Browse the repository at this point in the history
  • Loading branch information
jakekaplan authored Dec 11, 2024
1 parent 686d4c3 commit 6bfce9e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/prefect/workers/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -989,7 +989,6 @@ async def _submit_run_and_capture_errors(
try:
configuration = await self._get_configuration(flow_run)
submitted_event = self._emit_flow_run_submitted_event(configuration)
await self._give_worker_labels_to_flow_run(flow_run.id)
result = await self.run(
flow_run=flow_run,
task_status=task_status,
Expand Down
2 changes: 2 additions & 0 deletions tests/workers/test_base_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -2083,6 +2083,7 @@ async def _worker_metadata(self) -> WorkerMetadata:
assert worker._worker_metadata_sent


@pytest.mark.skip(reason="Passing worker labels to flow run is temporarily disabled")
async def test_worker_gives_labels_to_flow_runs_when_using_cloud_api(
prefect_client: PrefectClient, worker_deployment_wq1, work_pool
):
Expand Down Expand Up @@ -2118,6 +2119,7 @@ def create_run_with_deployment(state):
)


@pytest.mark.skip(reason="Passing worker labels to flow run is temporarily disabled")
async def test_worker_does_not_give_labels_to_flow_runs_when_not_using_cloud_api(
prefect_client: PrefectClient, worker_deployment_wq1, work_pool
):
Expand Down

0 comments on commit 6bfce9e

Please sign in to comment.