Member Junction
    Preparing search index...

    Runs one action for one task node.

    The third execution shape, beside agents and people. Abstracted for the same reason TaskAgentRunner is: the dispatcher must stay unit-testable without standing up the action engine, and this package must not import it — @memberjunction/actions depends on the entity layer this one also builds on, and reaching for it here would make every consumer of durable execution load the action engine too.

    A host with no action runner is not broken, it is limited. Action nodes stay Pending on it, which is visible in the Tasks UI, rather than being marked failed — a task nobody in this deployment can run is not the same as a task that ran and did not work.

    type TaskActionRunner = {
        EnforcesSecurityEnvelope?: boolean;
        RunActionForTask(params: TaskActionRunParams): Promise<TaskActionRunResult>;
    }

    Implemented by

    Index

    Properties

    EnforcesSecurityEnvelope?: boolean

    True when the runner enforces the node's SecurityEnvelope on the action: the run scope passed as RunScope, the audience, the bound parameters, and the taint gate (a tainted node may not run an action whose configuration says disallowWhenTainted). The dispatcher refuses a node whose envelope constrains anything when this is not true.

    Methods