• This repository has been archived on 03/Mar/2023
  • Stars
    star
    197
  • Rank 191,267 (Top 4 %)
  • Language
    Elixir
  • License
    MIT License
  • Created almost 8 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Utilities for retrying Elixir functions, with configurable delay and backoff.

GenRetry

Build Status Hex.pm Version

GenRetry provides utilities for retrying Elixir functions, with configurable delay and backoff characteristics.

Examples

my_background_function = fn ->
  :ok = try_to_send_tps_reports()
end
GenRetry.retry(my_background_function, retries: 10, delay: 10_000)
my_future_function = fn ->
  {:ok, val} = get_val_from_flaky_network_service()
  val
end
t = GenRetry.Task.async(my_future_function, retries: 3)
my_val = Task.await(t)  # may raise exception

Full Documentation

Full gen_retry documentation is available on Hexdocs.pm.

Changelog and Contributors

CHANGELOG.md is a record of contributions and releases. Thanks so much to everyone who's submitted patches!

Authorship and License

GenRetry is copyright 2016-2021 Appcues, Inc.

GenRetry is released under the MIT License.

More Repositories

1

mojito

An easy-to-use Elixir HTTP client, built on the low-level Mint library.
Elixir
348
star
2

exconstructor

An Elixir library for generating struct constructors that handle external data with ease.
Elixir
272
star
3

snabbdom-virtualize

Library for turning strings and DOM nodes into virtual DOM nodes compatible with snabbdom.
JavaScript
36
star
4

highcharts-themes

Super slick themes for Highcharts
CoffeeScript
28
star
5

strip_js

An Elixir library for stripping executable JS from HTML and CSS.
Elixir
13
star
6

config_smuggler

Encodes Elixir configs to and from string-formatted key/value pairs.
Elixir
12
star
7

appcues-android-sdk

The Appcues Android SDK
Kotlin
10
star
8

ueberauth_okta

Okta strategy for รœberauth
Elixir
8
star
9

appcues-react-native-module

The Appcues React Native Module
JavaScript
8
star
10

appcues-ios-sdk

The Appcues iOS SDK
Swift
7
star
11

stifle

Trap, observe, and release an Elixir function's side effects
Elixir
6
star
12

batch_please

Batch collector and processor for Elixir
Elixir
6
star
13

lockring

A fast mutex library for Elixir and other BEAM languages.
Elixir
6
star
14

appcues-flutter-plugin

The Appcues Flutter Plugin Package
Dart
4
star
15

segment-appcues-android

The Appcues Android SDK integration with Segment
Shell
3
star
16

useronboarding.org

CSS
3
star
17

ets_lock

An Elixir library for acquiring exclusive locks on ETS data.
Elixir
2
star
18

redis_cache

A wrapper for Redis which provides basic cache functionality in Elixir.
Elixir
2
star
19

segment-appcues-ios

The Appcues iOS SDK integration with Segment
Shell
2
star
20

jorb

Jorb is a simple jobs publisher/processor for Elixir
Elixir
1
star
21

email-templates

Collections of resources for Appcues email campaigns
HTML
1
star
22

microsites

CSS
1
star
23

appcues-capacitor-plugin

The Appcues Capacitor Plugin for Ionic Apps
TypeScript
1
star
24

react-starting-point

JavaScript
1
star
25

events

CSS
1
star
26

segment_spec

A simple Elixir data model for the events from Segment.com's spec.
Elixir
1
star
27

coffeecues

A rust HTTP server conforming to RFC 2324
Rust
1
star
28

brand

Public branding material for Appcues. Mostly because we love git :]
HTML
1
star
29

bbdd

Boop Boop Dedupe
Elixir
1
star