Skip to content

Releases: netinvent/command_runner

Sun goes brrr

03 Jun 16:14

Choose a tag to compare

A small release with a new feature: Log replacing: Allows to remove some sensitive info from debug/error logs

Also updated Python test matrix (obsoletes pypy < 3.11, adds Python 3.13 and 3.14).

Ha ha ha ha, stayin' alive (and again, and again) !

09 Sep 15:41

Choose a tag to compare

This is a maintenance release that fixes some random encoding issues when live output to stdout is binary.

Ha ha ha ha, stayin' alive (and again) !

27 May 07:41

Choose a tag to compare

This is a maintenance release that just fixes a linter error on type hinting.
There are no functional changes, but it makes pylint happy when running tests.

Ha ha ha ha, stayin' alive !

18 Apr 15:40

Choose a tag to compare

This is the thirdmaintenance release for the heartbeat series of command_runner.
Only a couple of small changes / refactoring was made for this release, and a fix for a long lasting double log issue when debug loglevel was used.
Manually tested on Python 2.7 :)

Fixes

  • Fix double debug stdout logging

Misc

  • Refactor process priority and io priority code
  • Avoid calling multiple times os.name()
  • Added priority and heartbeat tests
  • Deduplicate heartbeat code
  • Improve priority setting logs

Heartbeat - Alive, even for python 2.7

11 Mar 14:35

Choose a tag to compare

This is the second maintenance release for the heartbeat series of command_runner, and comes quickly after v1.7.1 as it fixes some corner cases when (still) using Python 2.7.

Fixes

  • All interruption exceptions (TimeoutExpired, KbdInterrupt, StopOnInterrupt, Interrupt) didn't properly call super() for earlier python versions

Note

If you run Python 3.3+, there's no need to install this update, but you still can ;)

Heartbeat - Alive

10 Mar 09:06

Choose a tag to compare

This is a maintenance release to address some CI issues

  • Python 3.13 was added and Python 3.7 was removed from the python test matrix.
  • Tests now also run on MacOS.
  • A lot of spelling fixes

There's no need to update to this version explicitly

Thanks to @yarikoptic for his help for macos and advices on codespell

Heartbeat

15 Sep 19:31

Choose a tag to compare

This release adds an optional heartbeat argument that takes a defined number of seconds after which command_runner logs a line.
This allows, by reading logs, to precisely know that a process is still running.:

Also, TimeoutExpired and StopOnInterrupt now only log the last 1000 characters of command output.

Something in, something out

09 Jan 19:48

Choose a tag to compare

This release adds a new parameter to customize stdin.

Features

  • New stdin parameter to change default behavior of Popen

Leave the queues alone

28 Dec 18:15

Choose a tag to compare

This release adds a new parameter to allow keeping stdout/stderr queues after command_runner has finished.

Features

  • New no_close_queues parameter to leave stdout/stderr queues open for later usage by parent functions
  • Updated ofunctions.threading implementation to v2.1.0
  • Added python 3.12 and pypy 3.10 to test matrix
  • poller/monitor tests now have less rounds in pypy python implementation (takes too long on Github actions)

Fixes

  • Various minor linter fixes

Let's get your priorities right

11 Dec 14:28

Choose a tag to compare

This release is a quick fix for priority settings

Features

  • Priority settings are now case insensitive

Fixes

  • IO priority was set with process priority values instead of IO priority values
  • Failing to set process/IO priority because of insufficient permissions now shows a proper warning message in logs