Merge pull request #80 from amhsirak/develop
feat: additional run metadata
This commit is contained in:
@@ -222,6 +222,7 @@ async function createWorkflowAndStoreMetadata(id: string, userId: string) {
|
|||||||
interpreterSettings: { maxConcurrency: 1, maxRepeats: 1, debug: true },
|
interpreterSettings: { maxConcurrency: 1, maxRepeats: 1, debug: true },
|
||||||
log: '',
|
log: '',
|
||||||
runId,
|
runId,
|
||||||
|
runByAPI: true,
|
||||||
serializableOutput: {},
|
serializableOutput: {},
|
||||||
binaryOutput: {},
|
binaryOutput: {},
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -20,6 +20,9 @@ interface RunAttributes {
|
|||||||
interpreterSettings: InterpreterSettings;
|
interpreterSettings: InterpreterSettings;
|
||||||
log: string;
|
log: string;
|
||||||
runId: string;
|
runId: string;
|
||||||
|
runByUserId?: string;
|
||||||
|
runByScheduleId?: string;
|
||||||
|
runByAPI?: boolean;
|
||||||
serializableOutput: Record<string, any[]>;
|
serializableOutput: Record<string, any[]>;
|
||||||
binaryOutput: Record<string, string>;
|
binaryOutput: Record<string, string>;
|
||||||
}
|
}
|
||||||
@@ -38,6 +41,9 @@ class Run extends Model<RunAttributes, RunCreationAttributes> implements RunAttr
|
|||||||
public interpreterSettings!: InterpreterSettings;
|
public interpreterSettings!: InterpreterSettings;
|
||||||
public log!: string;
|
public log!: string;
|
||||||
public runId!: string;
|
public runId!: string;
|
||||||
|
public runByUserId!: string;
|
||||||
|
public runByScheduleId!: string;
|
||||||
|
public runByAPI!: boolean;
|
||||||
public serializableOutput!: Record<string, any[]>;
|
public serializableOutput!: Record<string, any[]>;
|
||||||
public binaryOutput!: Record<string, any>;
|
public binaryOutput!: Record<string, any>;
|
||||||
}
|
}
|
||||||
@@ -93,6 +99,18 @@ Run.init(
|
|||||||
type: DataTypes.UUID,
|
type: DataTypes.UUID,
|
||||||
allowNull: false,
|
allowNull: false,
|
||||||
},
|
},
|
||||||
|
runByUserId: {
|
||||||
|
type: DataTypes.UUID,
|
||||||
|
allowNull: true,
|
||||||
|
},
|
||||||
|
runByScheduleId: {
|
||||||
|
type: DataTypes.UUID,
|
||||||
|
allowNull: true,
|
||||||
|
},
|
||||||
|
runByAPI: {
|
||||||
|
type: DataTypes.BOOLEAN,
|
||||||
|
allowNull: true,
|
||||||
|
},
|
||||||
serializableOutput: {
|
serializableOutput: {
|
||||||
type: DataTypes.JSONB,
|
type: DataTypes.JSONB,
|
||||||
allowNull: true,
|
allowNull: true,
|
||||||
|
|||||||
@@ -148,6 +148,7 @@ router.put('/runs/:id', requireSignIn, async (req, res) => {
|
|||||||
interpreterSettings: req.body,
|
interpreterSettings: req.body,
|
||||||
log: '',
|
log: '',
|
||||||
runId,
|
runId,
|
||||||
|
runByUserId: req.user.id,
|
||||||
serializableOutput: {},
|
serializableOutput: {},
|
||||||
binaryOutput: {},
|
binaryOutput: {},
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -59,6 +59,7 @@ async function createWorkflowAndStoreMetadata(id: string, userId: string) {
|
|||||||
interpreterSettings: { maxConcurrency: 1, maxRepeats: 1, debug: true },
|
interpreterSettings: { maxConcurrency: 1, maxRepeats: 1, debug: true },
|
||||||
log: '',
|
log: '',
|
||||||
runId,
|
runId,
|
||||||
|
runByScheduleId: uuid(),
|
||||||
serializableOutput: {},
|
serializableOutput: {},
|
||||||
binaryOutput: {},
|
binaryOutput: {},
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user