cadrumo.adapters.persistence.storage.custody._kdf_process module

Platform process launch and cleanup for the supervised KDF worker.

launch_worker(*, neutral_root, request_read, result_write)[source]
Return type:

tuple[Popen[bytes], _WindowsJob | None]

Parameters:
  • neutral_root (Path)

  • request_read (int)

  • result_write (int)

clear_worker_handle_inheritance(*, request_read, result_write)[source]

Close the Windows inheritance window immediately after the one launch.

Return type:

None

Parameters:
  • request_read (int)

  • result_write (int)

worker_command(*, neutral_root, request_read, result_write)[source]
Return type:

tuple[list[str], dict[str, object]]

Parameters:
  • neutral_root (Path)

  • request_read (int)

  • result_write (int)

worker_environment(*, neutral_root)[source]
Return type:

dict[str, str]

Parameters:

neutral_root (Path)

apply_posix_worker_limits()[source]
Return type:

None

terminate_process_tree(process, job)[source]
Return type:

None

Parameters: