[ 
https://issues.apache.org/jira/browse/CASSSIDECAR-217?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Yuriy Semchyshyn updated CASSSIDECAR-217:
-----------------------------------------
    Description: 
Currently, the {{PeriodicTask}} interface contains method called 
{{scheduleDecision()}}. That method is called immediately before each execution 
of a task. The returned value of the {{ScheduleDecision}} enum can cause the 
execution to be skipped.
Similarly, a new method called {{retryDecision(...)}} shall be introduced into 
the {{PeriodicTask}} interface. This new method shall be called immediately 
after a task execution failure. The returned value of the {{RetryDecision}} 
enum can cause the execution to be retried.

  was:
Currently, the `PeriodicTask` interface contains method called 
`scheduleDecision()`. That method is called immediately before each execution 
of a task. The returned value of the `ScheduleDecision` enum can cause the 
execution to be skipped.
Similarly, a new method called `retryDecision(...)` shall be introduced into 
the `PeriodicTask` interface. This new method shall be called immediately after 
a task execution failure. The returned value of the `RetryDecision` enum can 
cause the execution to be retried.


> Add Support for Retry Logic in Periodic Tasks
> ---------------------------------------------
>
>                 Key: CASSSIDECAR-217
>                 URL: https://issues.apache.org/jira/browse/CASSSIDECAR-217
>             Project: Sidecar for Apache Cassandra
>          Issue Type: Improvement
>            Reporter: Yuriy Semchyshyn
>            Assignee: Yuriy Semchyshyn
>            Priority: Major
>
> Currently, the {{PeriodicTask}} interface contains method called 
> {{scheduleDecision()}}. That method is called immediately before each 
> execution of a task. The returned value of the {{ScheduleDecision}} enum can 
> cause the execution to be skipped.
> Similarly, a new method called {{retryDecision(...)}} shall be introduced 
> into the {{PeriodicTask}} interface. This new method shall be called 
> immediately after a task execution failure. The returned value of the 
> {{RetryDecision}} enum can cause the execution to be retried.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to