Skip to content

Commit

Permalink
Extend task_fetch retries
Browse files Browse the repository at this point in the history
More beaker jobs are now relying on fetching tasks from git repos, and intermitted connectivity issue are causing unnecessary problems when restraint only tries a couple of times in half a minute.
It's a much bigger issue when core tasks like kernelinstall was aborted for that reason. The remaining tests in the recipe become pointless and even misleading due to false positive/negative from wrong kernel.
This minor change is increasing the number and interval of task_fetch retries - to make future jobs more tolerant with intermitted connectivity issue.
  • Loading branch information
lulinqing committed Nov 27, 2023
1 parent 41bdbee commit e5645a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/task.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
#define ROLE_REFRESH_INTERVAL 10
#define ROLE_REFRESH_RETRIES 3

#define TASK_FETCH_INTERVAL 10
#define TASK_FETCH_RETRIES 3
#define TASK_FETCH_INTERVAL 20
#define TASK_FETCH_RETRIES 30

typedef enum {
TASK_IDLE,
Expand Down

0 comments on commit e5645a0

Please sign in to comment.