pyiron_base.jobs.job.runfunction.multiprocess_wrapper#
- pyiron_base.jobs.job.runfunction.multiprocess_wrapper(working_directory: str, job_id: int | None = None, file_path: str | None = None, debug: bool = False, connection_string: str | None = None)[source]#
Wrapper function for running a job in a separate process.
- Parameters:
working_directory (str) – The working directory for the job.
job_id (Optional[int], optional) – The ID of the job. Defaults to None.
file_path (Optional[str], optional) – The file path of the job. Defaults to None.
debug (bool, optional) – Whether to run the job in debug mode. Defaults to False.
connection_string (Optional[str], optional) – The connection string for the job. Defaults to None.
- Raises:
ValueError – If both job_id and file_path are None.
- Returns:
None