-
Notifications
You must be signed in to change notification settings - Fork 118
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow Int values and parse as Seconds for Durations
The timeout values could be accidentally set as ints by a user rather than golang durations. This meant that "5" gets parsed to 5ms not 5s. Now we try and parse non duration strings as seconds. This has been tested by creating a function with the old binary, setting the timeouts for read, write and exec to "5" and 5. These are interpreted as 0s. New binary swapped in and re-deployed, this then worked as our waits were less than the 5 seconds, when expanded over 5s (the waits) then the fn was stopped Signed-off-by: Alistair Hey <alistair@heyal.co.uk>
- Loading branch information
1 parent
325228e
commit dd56bb9
Showing
2 changed files
with
101 additions
and
4 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