-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Increase the request_timeout from default (#153)
* Increase the request_timeout from default - As AWX gets overloaded with jobs, the response time of HTTP requests to the api/v2/jobs endpoint - The result is that AnsibleJob objects launcht he job, then keep checking for the status of the job that was launch. The GET request times out, and it launches a new job, which complicates the problem further. - This behavior is seen when createing 100+ AnsibleJob objects at once - We should keep this HTTP request_timeout abnormally high until the resource operator grows a better way to handle this (smart checks for timeout errors, etc.) * Bump minimum awx.awx collection version to 22.7.0 for request_timeout support * Add ability to configure request_timeout on jobs and workflows Signed-off-by: Christian M. Adams <[email protected]>
- Loading branch information
1 parent
bd06497
commit e2b61c4
Showing
10 changed files
with
32 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,4 @@ collections: | |
- name: operator_sdk.util | ||
version: "0.4.0" | ||
- name: awx.awx | ||
version: ">=21.8.0" | ||
version: ">=22.7.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--- | ||
|
||
# Time before request to AWX api/v2/jobs/{id}/stdout/ times out (in seconds) | ||
request_timeout: 600 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters