diff --git a/server/src/models/Run.ts b/server/src/models/Run.ts index dc371e8e..1e292dbb 100644 --- a/server/src/models/Run.ts +++ b/server/src/models/Run.ts @@ -25,6 +25,7 @@ interface RunAttributes { runByAPI?: boolean; serializableOutput: Record; binaryOutput: Record; + retryCount?: number; } interface RunCreationAttributes extends Optional { } @@ -46,6 +47,7 @@ class Run extends Model implements RunAttr public runByAPI!: boolean; public serializableOutput!: Record; public binaryOutput!: Record; + public retryCount!: number; } Run.init( @@ -120,6 +122,11 @@ Run.init( allowNull: true, defaultValue: {}, }, + retryCount: { + type: DataTypes.INTEGER, + allowNull: true, + defaultValue: 0, + }, }, { sequelize,