const df = require("durable-functions");
module.exports = df.orchestrator(function*(context) {
const retryOptions = new df.RetryOptions(5000, 3);
yield context.df.callActivityWithRetry("FlakyFunction", retryOptions);
// ...
});
There are several options for customizing the automatic retry policy. They include the following:
Max number of attempts: The maximum number of retry attempts.
First retry interval: The amount of time to wait before the first retry attempt.
Backoff coefficient: The coefficient used to determine rate of increase of backoff. Defaults to 1.
How to set Backoff coefficient?