-
Notifications
You must be signed in to change notification settings - Fork 15
Labels
enhancementNew feature or requestNew feature or request
Description
Feature Request
At the moment the number of retries (5) and the policy (5 seconds + a random number between 0 and 20) is used
FederatedCatalog/core/crawler-core/src/main/java/org/eclipse/edc/catalog/cache/ExecutionManager.java
Lines 114 to 122 in 91f00fa
monitor.severe("Unexpected exception occurred while crawling: " + item.getId(), throwable); | |
if (item.getErrors().size() > 5) { | |
monitor.severe(format("The following WorkItem has errored out more than 5 times. We'll discard it now: [%s]", item)); | |
} else { | |
var random = new Random(); | |
var delaySeconds = 5 + random.nextInt(20); | |
monitor.debug(format("The following work item has errored out. Will re-queue after a delay of %s seconds: [%s]", delaySeconds, item)); | |
crawlers.schedule(createCrawler(item), delaySeconds, TimeUnit.SECONDS); | |
} |
It should be configurable, and the random generation should be avoided
Which Areas Would Be Affected?
execution manager
Why Is the Feature Desired?
configurability
Who will sponsor this feature?
Please @-mention the committer that will sponsor your feature.
Solution Proposal
If possible, provide a (brief!) solution proposal.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request