salt icon indicating copy to clipboard operation
salt copied to clipboard

Ensure a sensible timeout for pgsql commands

Open edevil opened this issue 3 years ago • 1 comments

The psql command has no default timeout, so if the server is not responding or if some lock cannot be obtained, we will be waiting forever.

What does this PR do?

Introduce a default timeout of 60s for all psql commands.

Previous Behavior

Module would wait forever for commands to return.

New Behavior

Module will wait at most 60s for psql command to complete.

Merge requirements satisfied?

[NOTICE] Bug fixes or features added to Salt require tests.

  • [ ] Docs
  • [ ] Changelog - https://docs.saltproject.io/en/master/topics/development/changelog.html
  • [ ] Tests written/updated

Commits signed with GPG?

Yes

Please review Salt's Contributing Guide for best practices.

See GitHub's page on GPG signing for more information about signing commits with GPG.

edevil avatar Jan 09 '22 10:01 edevil

Hi there! Welcome to the Salt Community! Thank you for making your first contribution. We have a lengthy process for issues and PRs. Someone from the Core Team will follow up as soon as possible. In the meantime, here’s some information that may help as you continue your Salt journey. Please be sure to review our Code of Conduct. Also, check out some of our community resources including:

There are lots of ways to get involved in our community. Every month, there are around a dozen opportunities to meet with other contributors and the Salt Core team and collaborate in real time. The best way to keep track is by subscribing to the Salt Community Events Calendar. If you have additional questions, email us at [email protected]. We’re glad you’ve joined our community and look forward to doing awesome things with you!

welcome[bot] avatar Jan 09 '22 10:01 welcome[bot]

@edevil Have you been able to look at implementing @dmurphy18 's suggestion?

MKLeb avatar Oct 10 '22 18:10 MKLeb

Hey @MKLeb. Sorry but no, I've been a bit busy.

edevil avatar Oct 10 '22 19:10 edevil

Congratulations on your first PR being merged! :tada:

welcome[bot] avatar Nov 01 '22 20:11 welcome[bot]