@@ -400,12 +400,12 @@ async def scheduler_cli(
400
400
# upgrade the workflow DB (after user has confirmed upgrade)
401
401
_upgrade_database (db_file )
402
402
403
- # re-execute on another host if required
404
- _distribute (options .host , workflow_id_raw , workflow_id , options .color )
405
-
406
403
# print the start message
407
404
_print_startup_message (options )
408
405
406
+ # re-execute on another host if required
407
+ _distribute (options .host , workflow_id_raw , workflow_id , options .color )
408
+
409
409
# setup the scheduler
410
410
# NOTE: asyncio.run opens an event loop, runs your coro,
411
411
# then shutdown async generators and closes the event loop
@@ -561,10 +561,14 @@ def _upgrade_database(db_file: Path) -> None:
561
561
562
562
563
563
def _print_startup_message (options ):
564
- """Print the Cylc header including the CLI logo."""
564
+ """Print the Cylc header including the CLI logo to the user's terminal ."""
565
565
if (
566
566
cylc .flow .flags .verbosity > - 1
567
567
and (options .no_detach or options .format == 'plain' )
568
+ # don't print the startup message on reinvocation (note
569
+ # --host=localhost is the best indication we have that reinvokation has
570
+ # happened)
571
+ and options .host != 'localhost'
568
572
):
569
573
print (
570
574
cparse (
0 commit comments