Skip to content

Commit

Permalink
change default timeout return code to unknown (3)
Browse files Browse the repository at this point in the history
  • Loading branch information
sni committed Feb 14, 2024
1 parent 23c235d commit 9a92b5a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
This file documents the revision history for the Mod-Gearman-Worker-Go

next:
- change default timeout return code to unknown (3)

1.3.8 Mon Jan 29 08:33:36 CET 2024
- update internal check_nsc_web to 0.6.2
- unify return code to unknown if file was not found
Expand Down
2 changes: 1 addition & 1 deletion configuration_parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func (config *configurationStruct) setDefaultValues() {
config.logmode = "automatic"
config.dupResultsArePassive = true
config.dupServerBacklogQueueSize = 1000
config.timeoutReturn = 2
config.timeoutReturn = 3
config.jobTimeout = 60
config.idleTimeout = 10
config.daemon = false
Expand Down
4 changes: 2 additions & 2 deletions worker.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,8 @@ show_error_output=yes

# Defines the return code for timed out checks. Accepted return codes
# are 0 (Ok), 1 (Warning), 2 (Critical) and 3 (Unknown)
# Default: 2
#timeout_return=2
# Default: 3
#timeout_return=3


# Use dup_results_are_passive to set if the duplicate result send to the dupserver
Expand Down

0 comments on commit 9a92b5a

Please sign in to comment.