classProcessJobConfiguration(BaseJobConfiguration):stream_output:bool=Field(default=True)working_dir:Optional[Path]=Field(default=None)@validator("working_dir")defvalidate_command(cls,v):returnvalidate_command(v)defprepare_for_flow_run(self,flow_run:"FlowRun",deployment:Optional["DeploymentResponse"]=None,flow:Optional["Flow"]=None,):super().prepare_for_flow_run(flow_run,deployment,flow)self.env={**os.environ,**self.env}self.command=(f"{get_sys_executable()} -m prefect.engine"ifself.command==self._base_flow_run_command()elseself.command)def_base_flow_run_command(self)->str:""" Override the base flow run command because enhanced cancellation doesn't work with the process worker. """return"python -m prefect.engine"