diff options
| author | Brian Potchik <brian@vector35.com> | 2025-07-29 13:48:01 -0400 |
|---|---|---|
| committer | Brian Potchik <brian@vector35.com> | 2025-07-29 13:48:01 -0400 |
| commit | 5244be17ac0b2c600cc95c70ec33bde568986d90 (patch) | |
| tree | 568e4fcfb9015141b3b149272d200ba0dd634dae /plugins/warp/src/plugin | |
| parent | c2a48b1ff770c092a9745eaa28092b89159beb4f (diff) | |
Add support for declarative downstream dependencies to workflow system.
Diffstat (limited to 'plugins/warp/src/plugin')
| -rw-r--r-- | plugins/warp/src/plugin/workflow.rs | 7 |
1 files changed, 5 insertions, 2 deletions
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(); |
