Skip to content

Commit 372df6b

Browse files
committed
chore: Add internal toggle to disable Running Action banner
Signed-off-by: David Leong <116610336+leongdl@users.noreply.github.com>
1 parent 13c82a4 commit 372df6b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/openjd/sessions/_runner_base.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,7 @@ def __init__(
225225
# Will run at most the run futures
226226
self._pool = ThreadPoolExecutor(max_workers=1)
227227
self._state_override = None
228+
self._print_section_banner = True
228229

229230
# Context manager for use in our tests
230231
def __enter__(self) -> "ScriptRunnerBase":
@@ -354,7 +355,8 @@ def _run(self, args: Sequence[str], time_limit: Optional[timedelta] = None) -> N
354355
self._runtime_limit = Timer(time_limit.total_seconds(), self._on_timelimit)
355356
self._runtime_limit.start()
356357

357-
log_subsection_banner(self._logger, "Phase: Running action")
358+
if self._print_section_banner:
359+
log_subsection_banner(self._logger, "Phase: Running action")
358360
self._run_future = self._pool.submit(self._process.run)
359361
# Intentionally leave the lock section. If the process was *really* fast,
360362
# then it's possible for the future to have finished before we get to add

0 commit comments

Comments
 (0)