hashicorp / hashicorp/serf

serf query with timeout option is waiting on the time irrespective of the event completion.

Open
#398 2 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
Go
Stars
6.1k
Forks
609
Avg merge
15h 1m
Merged PRs (30d)
3

Description

Hello All,
I have an interesting issue using Serf query -timeout option.
I am executing a workflow where each step takes a max-time of 2minutes.
I am running 10 queries in which some queries depend on the completion of others. A timeout='120s", serf query is waiting for all the 120s irrespective of the completion of the event/query.
My event/query sometimes completes within a minute. In that case waiting for all the 120s doesn't add value to this Senario.
Can you please guide me for some work around to achieve the same.

Example:
-bash-4.1$ date;serf query -timeout="50s" runtest dummy;date
Tue Jul 19 23:36:03 PDT 2016
Query 'runtest' dispatched
Ack from ''
Total Acks: 1
Total Responses: 0
Tue Jul 19 23:36:53 PDT 2016

In the above example, the event waits untill all the 50s to exit, even though my query completed in the first 2s.

Thanks
Sasikant

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.