Flows and dashboards are created by POST under an issued or superuser-pinned id; PUT only updates; deleted flows leave a tombstone with their key; the controller stores by id and runs by key, hooks live under /hooks/<flow id>; a key with state or queued work behind it is refused until cleared
This commit is contained in:
@@ -15,6 +15,7 @@ from fluksio.flow.schemas import FlowDef, FlowInput, NodeDef
|
||||
from fluksio.flow.state import MemoryState
|
||||
from fluksio.flow.store import FlowStore
|
||||
from fluksio.models import Run, RunArtifact
|
||||
from tests.utils.stores import created
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
@@ -126,9 +127,7 @@ def test_a_sweep_keeps_what_a_flow_input_starts_with(store, tmp_path):
|
||||
flows.write_flow(
|
||||
FlowDef(name="f", inputs=[FlowInput(spec=clip, initial=published)])
|
||||
)
|
||||
flows.write_draft(
|
||||
FlowDef(name="g", inputs=[FlowInput(spec=clip, initial=drafted)]), 0
|
||||
)
|
||||
created(flows, FlowDef(name="g", inputs=[FlowInput(spec=clip, initial=drafted)]))
|
||||
|
||||
assert sweep_artifacts(store, MemoryState(), grace_s=0, flows=flows) == 1
|
||||
assert store.path(orphan["digest"]) is None
|
||||
|
||||
Reference in New Issue
Block a user