retry strategy

 

<!--
#Number of retries on failure
orderTaskWorker.retryCount=100
#Retry weight, the algorithm is: current time + (rate * retryCount) > update time, executable
orderTaskWorker.rate=100
-->

and RetryCount <= #retryCount#
and UpdateTime < dateadd(n, #rate# * RetryCount, getdate())
<!--Unlock reset times plus one-->
<update id="unlockTask" parameterClass="java.lang.Long">
		update MayiTask
		set
		IsFinished = 0, RetryCount = RetryCount + 1, UpdateTime = getdate()
		where Id = #value# and IsFinished = 100
</update>
 

 

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326010234&siteId=291194637