|
@@ -111,6 +111,7 @@ nlohmann::json ExecutionResult::toJson() const {
|
|
|
// Note: id is managed by database as _id (execution_id is passed to storage_.insert)
|
|
// Note: id is managed by database as _id (execution_id is passed to storage_.insert)
|
|
|
j["workflowId"] = workflow_id;
|
|
j["workflowId"] = workflow_id;
|
|
|
j["workflowName"] = workflow_name;
|
|
j["workflowName"] = workflow_name;
|
|
|
|
|
+ j["runnerId"] = runner_id;
|
|
|
j["status"] = executionStatusToString(status);
|
|
j["status"] = executionStatusToString(status);
|
|
|
j["triggerType"] = trigger_type;
|
|
j["triggerType"] = trigger_type;
|
|
|
j["triggerData"] = truncateLargeValues(trigger_data);
|
|
j["triggerData"] = truncateLargeValues(trigger_data);
|
|
@@ -199,6 +200,7 @@ Result<ExecutionResult> WorkflowEngine::execute(const Workflow& workflow,
|
|
|
// Create execution record
|
|
// Create execution record
|
|
|
ExecutionResult result;
|
|
ExecutionResult result;
|
|
|
result.execution_id = UUID::generatePrefixed("exec");
|
|
result.execution_id = UUID::generatePrefixed("exec");
|
|
|
|
|
+ result.runner_id = config_.runner_id;
|
|
|
result.workflow_id = workflow.id;
|
|
result.workflow_id = workflow.id;
|
|
|
result.workflow_name = workflow.name;
|
|
result.workflow_name = workflow.name;
|
|
|
result.status = ExecutionStatus::Running;
|
|
result.status = ExecutionStatus::Running;
|