rest-collector-plugin-with-retry #432

Merged
claudio.atzori merged 3 commits from rest-collector-plugin-with-retry into beta 2024-05-10 09:02:33 +02:00
Member

I implemented a retry mechanism for the calls of the Collector REST plugin.
When a call fails, the plugin waits for some seconds and then retry.

The MAX number of retries for each call is defined as a constant (MAX_ATTEMPTS = 5), and the time of delay is automatically calculated, for example:

  • attempt 0: 0 seconds (first call)
  • attempt 1: 5 seconds
  • attempt 2: 10 seconds
  • attempt 3: 15 seconds
    ...

This mechanism has been implemented because the aggregation from the OSF repository never completed for the random failure of the API calls (generally the error code was 502).

I implemented a retry mechanism for the calls of the Collector REST plugin. When a call fails, the plugin waits for some seconds and then retry. The MAX number of retries for each call is defined as a constant (_MAX_ATTEMPTS = 5_), and the time of delay is automatically calculated, for example: - attempt 0: 0 seconds (first call) - attempt 1: 5 seconds - attempt 2: 10 seconds - attempt 3: 15 seconds ... This mechanism has been implemented because the aggregation from the **OSF repository** never completed for the random failure of the API calls (generally the error code was 502).
michele.artini added 2 commits 2024-05-02 10:12:55 +02:00
claudio.atzori was assigned by michele.artini 2024-05-02 10:13:23 +02:00
alessia.bardi was assigned by michele.artini 2024-05-02 10:13:24 +02:00
claudio.atzori added 1 commit 2024-05-10 09:02:24 +02:00
claudio.atzori merged commit 53e7bb4336 into beta 2024-05-10 09:02:33 +02:00
Sign in to join this conversation.
No description provided.