You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -564,9 +567,18 @@ func runWasm[I, O proto.Message](
564
567
returno, fmt.Errorf("error executing runner")
565
568
casecontainsCode(err, wasm.CodeHostErr):
566
569
returno, fmt.Errorf("invariant violation: host errored during sendResponse")
567
-
default:
568
-
returno, err
569
570
}
571
+
572
+
// If an error has occurred and the deadline has been reached or exceeded, return a deadline exceeded error.
573
+
// Note - there is no other reliable signal on the error that can be used to infer it is due to epoch deadline
574
+
// being reached, so if an error is returned after the deadline it is assumed it is due to that and return
575
+
// context.DeadlineExceeded.
576
+
iferr!=nil&&executionDuration>=*m.cfg.Timeout-m.cfg.TickInterval { // As start could be called just before epoch update 1 tick interval is deducted to account for this
577
+
m.cfg.Logger.Errorw("start function returned error after deadline reached, returning deadline exceeded error", "errFromStartFunction", err)
0 commit comments