feat: retry upload on jar not found
This commit is contained in:
@@ -37,10 +37,11 @@ func (job *ManagedJob) upload() error {
|
||||
// run the job from saved jarId in managedJob
|
||||
func (job *ManagedJob) run() error {
|
||||
if job.def.Status.JarId == nil {
|
||||
err := errors.New("missing jar id")
|
||||
err := errors.New("missing jar id")
|
||||
lc.Logger.Error("[managed-job] [run]", zap.Error(err))
|
||||
return err
|
||||
}
|
||||
lc.Logger.Info("[managed-job] [run] starting job", zap.String("name", job.def.GetName()))
|
||||
runJarResp, err := job.client.RunJar(api.RunOpts{
|
||||
JarID: *job.def.Status.JarId,
|
||||
AllowNonRestoredState: true,
|
||||
|
||||
Reference in New Issue
Block a user