Skip to content

Commit

Permalink
Merge pull request saltstack#40364 from basepi/worker_threads
Browse files Browse the repository at this point in the history
Remove usually-wrong advice to raise worker threads
  • Loading branch information
Nicole Thomas authored Mar 31, 2017
2 parents 52ac869 + 2ecbb72 commit 43066f3
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions salt/client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1770,9 +1770,13 @@ def pub(self,
payload = channel.send(payload_kwargs, timeout=timeout)
except SaltReqTimeoutError:
raise SaltReqTimeoutError(
'Salt request timed out. The master is not responding. '
'If this error persists after verifying the master is up, '
'worker_threads may need to be increased.'
'Salt request timed out. The master is not responding. You '
'may need to run your command with `--async` in order to '
'bypass the congested event bus. With `--async`, the CLI tool '
'will print the job id (jid) and exit immediately without '
'listening for responses. You can then use '
'`salt-run jobs.lookup_jid` to look up the results of the job '
'in the job cache later.'
)

if not payload:
Expand Down Expand Up @@ -1875,9 +1879,13 @@ def pub_async(self,
payload = yield channel.send(payload_kwargs, timeout=timeout)
except SaltReqTimeoutError:
raise SaltReqTimeoutError(
'Salt request timed out. The master is not responding. '
'If this error persists after verifying the master is up, '
'worker_threads may need to be increased.'
'Salt request timed out. The master is not responding. You '
'may need to run your command with `--async` in order to '
'bypass the congested event bus. With `--async`, the CLI tool '
'will print the job id (jid) and exit immediately without '
'listening for responses. You can then use '
'`salt-run jobs.lookup_jid` to look up the results of the job '
'in the job cache later.'
)

if not payload:
Expand Down

0 comments on commit 43066f3

Please sign in to comment.