From 5244be17ac0b2c600cc95c70ec33bde568986d90 Mon Sep 17 00:00:00 2001 From: Brian Potchik Date: Tue, 29 Jul 2025 13:48:01 -0400 Subject: Add support for declarative downstream dependencies to workflow system. --- plugins/warp/src/plugin/workflow.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'plugins/warp/src/plugin') diff --git a/plugins/warp/src/plugin/workflow.rs b/plugins/warp/src/plugin/workflow.rs index 56823de4..6a30606e 100644 --- a/plugins/warp/src/plugin/workflow.rs +++ b/plugins/warp/src/plugin/workflow.rs @@ -40,6 +40,9 @@ const MATCHER_ACTIVITY_CONFIG: &str = r#"{ "eligibility": { "auto": {}, "runOnce": true + }, + "dependencies": { + "downstream": ["core.module.update"] } }"#; @@ -288,10 +291,10 @@ pub fn insert_workflow() { let matcher_activity = Activity::new_with_action(MATCHER_ACTIVITY_CONFIG, matcher_activity); // Matcher activity must have core.module.update as subactivity otherwise analysis will sometimes never retrigger. module_meta_workflow - .register_activity_with_subactivities(&matcher_activity, vec!["core.module.update"]) + .register_activity(&matcher_activity) .unwrap(); module_meta_workflow.insert( - "core.module.deleteUnusedAutoFunctions", + "core.module.finishUpdate", [MATCHER_ACTIVITY_NAME], ); module_meta_workflow.register().unwrap(); -- cgit v1.3.1