It's useful to be able to, in automated processing, take different actions based on whether there's anything in the process queue (e.g. skip processing if nothing got ingested.) printProcessQueue gives that information, but it's hard to check that programmatically.
Proposed enhancement
printProcessQueue should take a flag (letter TBD). Iff this flag is set, set the exit code: 0 if there's something in the process queue (by analogy with grep), and 1 if it's empty.
Possible flag name: -q for quiet (and then only set exit status, don't print...although maybe we want the ability to print output and also set exit status?)
Alternatives
magically grepping the output
OS, Python version, and dependency version information:
It's useful to be able to, in automated processing, take different actions based on whether there's anything in the process queue (e.g. skip processing if nothing got ingested.) printProcessQueue gives that information, but it's hard to check that programmatically.
Proposed enhancement
printProcessQueue should take a flag (letter TBD). Iff this flag is set, set the exit code: 0 if there's something in the process queue (by analogy with grep), and 1 if it's empty.
Possible flag name:
-q
for quiet (and then only set exit status, don't print...although maybe we want the ability to print output and also set exit status?)Alternatives
magically grepping the output
OS, Python version, and dependency version information:
Version of dbprocessing
Current github master
Closure condition
Close when merge a commit with the suggested flag