mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-09 00:59:02 +02:00
Merge pull request #24466 from overleaf/ls-script-runner
Script runner GitOrigin-RevId: 4cc7004f05177dba2a2151aa6db7e75fb679d11d
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
import Mongoose from '../infrastructure/Mongoose.js'
|
||||
|
||||
export const ScriptLogSchema = new Mongoose.Schema(
|
||||
{
|
||||
canonicalName: { type: String, required: true },
|
||||
filePathAtVersion: { type: String, required: true },
|
||||
imageVersion: { type: String, required: true },
|
||||
podName: { type: String, required: true },
|
||||
startTime: { type: Date, default: Date.now },
|
||||
endTime: { type: Date, default: null },
|
||||
username: { type: String, required: true },
|
||||
status: {
|
||||
type: String,
|
||||
enum: ['pending', 'success', 'error'],
|
||||
default: 'pending',
|
||||
required: true,
|
||||
},
|
||||
vars: { type: Object, required: true },
|
||||
progressLogs: {
|
||||
type: [{ timestamp: Date, message: String }],
|
||||
required: true,
|
||||
},
|
||||
},
|
||||
{ minimize: false, collection: 'scriptLogs' }
|
||||
)
|
||||
|
||||
export const ScriptLog = Mongoose.model('ScriptLog', ScriptLogSchema)
|
||||
Reference in New Issue
Block a user