MCPcopy Index your code
hub / github.com/pathwaycom/pathway / replay

Function replay

python/pathway/cli.py:484–523  ·  view source on GitHub ↗
(
    threads,
    processes,
    first_port,
    addresses,
    process_id,
    record_path,
    mode,
    continue_after_replay,
    repository_url,
    branch,
    program,
    arguments,
)

Source from the content-addressed store, hash-verified

482@click.argument("program")
483@click.argument("arguments", nargs=-1)
484def replay(
485 threads,
486 processes,
487 first_port,
488 addresses,
489 process_id,
490 record_path,
491 mode,
492 continue_after_replay,
493 repository_url,
494 branch,
495 program,
496 arguments,
497):
498 processes, process_id = validate_and_resolve_spawn_args(
499 threads=threads,
500 processes=processes,
501 first_port=first_port,
502 addresses=addresses,
503 process_id=process_id,
504 )
505 env = os.environ.copy()
506 env["PATHWAY_REPLAY_STORAGE"] = record_path
507 env["PATHWAY_SNAPSHOT_ACCESS"] = "replay"
508 env["PATHWAY_PERSISTENCE_MODE"] = mode
509 env["PATHWAY_REPLAY_MODE"] = mode
510 if continue_after_replay:
511 env["PATHWAY_CONTINUE_AFTER_REPLAY"] = "true"
512 spawn_program(
513 threads=threads,
514 processes=processes,
515 first_port=first_port,
516 addresses=addresses,
517 process_id=process_id,
518 repository_url=repository_url,
519 branch=branch,
520 program=program,
521 arguments=arguments,
522 env_base=env,
523 )
524
525
526@cli.command()

Callers

nothing calls this directly

Calls 3

spawn_programFunction · 0.85
copyMethod · 0.45

Tested by

no test coverage detected