Skip to content

Commit

Permalink
fix: update lastEvaluationTime in FULFILLED, so that we wait a bit lo…
Browse files Browse the repository at this point in the history
…nger before checking again.
  • Loading branch information
nytamin committed Mar 26, 2024
1 parent b5ea9c8 commit 4a72b61
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ export async function evaluateExpectationStateFulfilled({
// Yes it is still fullfiled
// No need to update the tracked state, since it's already fulfilled:
// this.updateTrackedExp(trackedExp, WorkStatusState.FULFILLED, fulfilled.reason)

// Update lastEvaluationTime, so that we wait a bit longer before checking again (using tracker.getFulfilledWaitTime()):
trackedExp.lastEvaluationTime = Date.now()
}
} catch (error) {
runner.logger.warn(`Error in FULFILLED: exp "${trackedExp.id}": ${stringifyError(error)}`)
Expand Down

0 comments on commit 4a72b61

Please sign in to comment.