From 614f236da5cbbeed5fc823e24effc97321a8f02b Mon Sep 17 00:00:00 2001 From: Stephan Geulette Date: Wed, 2 Oct 2024 21:44:07 +0200 Subject: [PATCH] batch is considered finished if no batching --- CHANGES.rst | 2 ++ src/imio/helpers/batching.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/CHANGES.rst b/CHANGES.rst index 8ac3c3d..845122c 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -6,6 +6,8 @@ Changelog - Imported batch_delete_files from imio.pyutils if someone is yet using it from here. [sgeulette] +- batch is considered finished if no batching. + [sgeulette] 1.0.1 (2024-09-18) ------------------ diff --git a/src/imio/helpers/batching.py b/src/imio/helpers/batching.py index cdb4316..e3435a1 100644 --- a/src/imio/helpers/batching.py +++ b/src/imio/helpers/batching.py @@ -171,6 +171,8 @@ def batch_globally_finished(batch_keys, config): """ # if not batch_keys: # return True + if not config["bn"]: # no batching + return True if config['lc'] == 0: # nothing treated return True elif config['fr']: # first run with results