-
-
Notifications
You must be signed in to change notification settings - Fork 388
Decrease Wingman timeout from 3.3 minutes to 2 seconds (configurable) #1688
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Why 2 seconds though. Seems a bit short. Make it configurable ? |
Now officially configurable! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
-- semigroup | ||
, "sconcat", "stimes" | ||
-- monoid | ||
, "mconcat" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are these changes bundled together?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm an absolute madman
My rule is always make timeouts in seconds, and Double (or even better, the Seconds alias https://hackage.haskell.org/package/extra-1.7.9/docs/Extra.html#t:Seconds). Then also use the timeout from Extra (https://hackage.haskell.org/package/extra-1.7.9/docs/Extra.html#v:timeout) and everything works properly. Having timeouts in milliseconds, microseconds or whatever is just too confusing. |
At some point I made a boneheaded move, thinking that
1e8
was the number of microseconds in a second. I'm not sure where this number came from, but it's 2 orders of magnitude too large. As a result, the timeout feature in Wingman didn't work very well.This PR changes the tactic timeout to be a more reasonable 2 seconds, down from 3+ minutes.