Skip to main content

execute_cron_plugin

Function execute_cron_plugin 

Source
pub async fn execute_cron_plugin(
    plugin: &CrdPlugin,
    crd_kind: &str,
    db_path: Option<&Path>,
) -> Result<()>
Expand description

Execute a cron plugin (periodic maintenance task).

The plugin receives env: PLUGIN_NAME, PLUGIN_TYPE, CRD_KIND. Returns Ok(()) on success, Err on failure (caller should log, not abort).