{"success":true,"partial":false,"results":[{"id":"doc:https://www.jobrunr.io/en/documentation/background-methods/dealing-with-exceptions/","url":"https://www.jobrunr.io/en/documentation/background-methods/dealing-with-exceptions/","title":"dealing with exceptions","passages":[{"text":"## How to configure the amount of retries?\n\nYou can of course configure how many retries JobRunr will do by default.\n\n- Default retry policy configuration\n- Per Job\n- JobRunr Pro Custom retry policy for all your jobs\n- JobRunr Pro Custom retry policy per job\n- JobRunr Pro Custom retry policy per exception\n- JobRunr Pro Do Not Retry policy\n\n#### Default retry policy configuration\n\n```java\nJobRunr.configure()\n    .withJobFilters(new RetryFilter(2))\n    .useBackgroundJobServer(new BackgroundJobServer(...))\n    ....\n```\n\nJobs will only be retried 2 times instead of 10 times as the default RetryFilter is overriden.\n\nThis is also configurable by means of a property setting (`default-number-of-retries` and `retry-back-off-time-seed`) if you are using the Spring, Micronaut or Quarkus integration.\n\n#### Per job\n\nYou can configure the amount of retries per job by means of the `@Job` annotation.\n\n```java\n    @Job(name=\"Job Name\", retries=2)\n    public void doWorkWithCustomJobFilters() {\n        System.out.println(\"I will only be retried two times \");\n    }\n```\n\nThe number of retries can also be configured per job by using the @Job annotation on each service method.\n… (9 more lines)","truncated":true,"full_tokens_est":688}]},{"id":"issue:subzeroid/instagrapi#2184","url":"https://github.com/subzeroid/instagrapi/issues/2184","title":"Is there any client method to configure number of retries for both public and private requests?#2184","passages":[{"text":"# Is there any client method to configure number of retries for both public and private requests?#2184\n## Description\nYou can configure it either at client creation time or later via `set_retry_config(...)`:\n\n- `docker compose run --rm --entrypoint python devbox -m unittest tests.ClientTestCase.test_set_retry_config_updates_settings_and_session_adapters tests.ClientTestCase.test_settings_round_trip_preserves_retry_config tests.ClientTestCase.test_public_request_uses_client_retry_defaults`\n- `docker compose run --rm --entrypoint mkdocs mkdocs build --strict`"}],"license":"NOASSERTION"},{"id":"web:https://docs.aws.amazon.com/sdkref/latest/guide/feature-retry-behavior.html","url":"https://docs.aws.amazon.com/sdkref/latest/guide/feature-retry-behavior.html","title":"Retry behavior - AWS SDKs and Tools - AWS Documentation","passages":[{"text":"Configuring retries: Choose a retry mode, set max attempts, and understand configuration precedence. How retries work: Retry flow, error classification, backoff"}]},{"id":"web:https://resilience4j.readme.io/docs/retry","url":"https://resilience4j.readme.io/docs/retry","title":"Retry - resilience4j","passages":[{"text":"In order to create a custom global RetryConfig, you can use the RetryConfig builder. You can use the builder to configure: the maximum number of attempts the"}]},{"id":"web:https://hookdeck.com/docs/retries","url":"https://hookdeck.com/docs/retries","title":"Retries | Hookdeck Event Gateway Docs","passages":[{"text":"Configuring automatic retries #. Configure a connection's automatic retries by setting its retry rule. There you can define the number of automatic retries"}]},{"id":"web:https://discuss.hangfire.io/t/automatic-retries-how-to-manually-configure-the-time-between-retries/411","url":"https://discuss.hangfire.io/t/automatic-retries-how-to-manually-configure-the-time-between-retries/411","title":"how to manually configure the time between retries - feature","passages":[{"text":"This is how I accomplished it, Hangfire comes with a default retry filter. I remove the default filter on startup and replace it with my own"}]},{"id":"web:https://www.pollydocs.org/strategies/retry.html","url":"https://www.pollydocs.org/strategies/retry.html","title":"Retry resilience strategy - Polly","passages":[{"text":"Exponential, // Initially, we aim for an exponential backoff, but after a certain number of retries, we set a maximum delay of 15 minutes. MaxDelay"}]},{"id":"web:https://medium.com/@AlexanderObregon/implementing-method-level-retry-in-spring-boot-9871a063add8","url":"https://medium.com/@AlexanderObregon/implementing-method-level-retry-in-spring-boot-9871a063add8","title":"Implementing Method-Level Retry in Spring Boot | Medium","passages":[{"text":"If you want to configure things programmatically, you can use a RetryTemplate directly like this: Spring Retry adds retry behavior by wrapping"}]},{"id":"doc:https://github.com/openrouterteam/python-sdk/blob/78bb2f38f4487522bee998019c08ba7899c88cee/docs/sdks/guardrails/README.mdx","url":"https://github.com/openrouterteam/python-sdk/blob/78bb2f38f4487522bee998019c08ba7899c88cee/docs/sdks/guardrails/README.mdx","title":"Guardrails","passages":[{"text":"## list\n### Example Usage\n\n### Parameters\n| Parameter | Type | Required | Description | Example |\n|-|-|-|-|-|\n| `retries` | Optional[utils.RetryConfig] | ➖ | Configuration to override the default retry behavior of the client. |  |\n\n## create\n### Example Usage\n\n### Parameters\nDefaults to false.                                                                                                                                                                                                                                                                                                                          | false                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |\n\n| `retries`                                                                                                                                                                                                                                                                                                                                                                                                                                                                       | Optional[utils.RetryConfig]                                                                                                                                                                                                                                                                                                                                                                                                                | ➖                                                                                                                                                                                                                                                                                                                                                                                                                                                              | Configuration to override the default retry behavior of the client.\n\n## get\n### Example Usage\n\n### Parameters\n| Parameter | Type | Required | Description | Example |\n|-|-|-|-|-|\n| `retries` | Optional[utils.RetryConfig] | ➖ | Configuration to override the default retry behavior of the client. |  |"}],"license":"Apache-2.0"},{"id":"pull_request:stanford-crfm/helm#3766","url":"https://github.com/stanford-crfm/helm/issues/3766","title":"While I've been debugging HEIM, having to wait for 5 retries before getting a failure was making me wish there was a way","passages":[{"text":"While I've been debugging HEIM, having to wait for 5 retries before getting a failure was making me wish there was a way to configure them.\n\nIdeally this setting would be exposed in a CLI arg or config file somewhere (both in the most ideal situation), but because the number 5 seems to be hardcoded at the module level at import time that makes this approach difficult. So in the meantime, I just added two environment variables: `HELM_RETRIES` and `HELM_TOKENIZER_RETRIES` that provide some mechanism.\n\nIn the future I would like to have a unified config system such that every aspect of the application can be configured in a similar way by either CLI args, a config file, or environment variables similar to how cibuildwheel does it. But for now, this at least provides a way to customize the number of retries.\n\n          Allow number of retries to be configurable\n\nJon Crall\n\nExpired\n\n**yifanmai**\n\napproved these changes\n\nThe reason will be displayed to describe this comment to others. Learn more.\n\nLooks good, thanks!\n\nmerged commit `b6ba4f1`\ninto\n\n8 checks passed\n\nmentioned this pull request\n\n[Make retries configurable via environment\\\\\n#4259](https://github.com/stanford-crfm/helm/pull/4259)\n\nLearn more about bidirectional Unicode characters\n\nShow hidden characters"}],"license":"Apache-2.0"}]}