Skip to content

Commit ad7d1b3

Browse files
committed
Remove flow for refresh.registry.* tasks
1 parent 618bc69 commit ad7d1b3

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

backend/infrahub/message_bus/operations/refresh/registry.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
from prefect import flow
21

32
from infrahub import lock
43
from infrahub.core.registry import registry
@@ -8,7 +7,6 @@
87
from infrahub.worker import WORKER_IDENTITY
98

109

11-
@flow(name="registry-branch-refresh")
1210
async def branches(message: messages.RefreshRegistryBranches, service: InfrahubServices) -> None:
1311
if message.meta and message.meta.initiator_id == WORKER_IDENTITY:
1412
service.log.info("Ignoring refresh registry refresh request originating from self", worker=WORKER_IDENTITY)
@@ -20,7 +18,6 @@ async def branches(message: messages.RefreshRegistryBranches, service: InfrahubS
2018
await service.component.refresh_schema_hash()
2119

2220

23-
@flow(name="registry-branch-rebase")
2421
async def rebased_branch(message: messages.RefreshRegistryRebasedBranch, service: InfrahubServices) -> None:
2522
if message.meta and message.meta.initiator_id == WORKER_IDENTITY:
2623
service.log.info(

backend/tests/unit/message_bus/test_mappings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def test_message_command_overlap():
1818

1919
@pytest.mark.parametrize(
2020
"operation",
21-
[pytest.param(function, id=key) for key, function in COMMAND_MAP.items()],
21+
[pytest.param(function, id=key) for key, function in COMMAND_MAP.items() if not key.startswith("refresh.registry")],
2222
)
2323
def test_operations_decorated(operation: Callable):
2424
if callable(operation) and hasattr(operation, "__name__") and "Flow" not in type(operation).__name__:

0 commit comments

Comments
 (0)