def build_process_started_event(run_id, pipeline_name, process_id): message = 'Started process for pipeline (pid: {process_id}).'.format( process_id=process_id) return DagsterEventRecord( message=message, user_message=message, level=logging.INFO, run_id=run_id, timestamp=time.time(), error_info=None, pipeline_name=pipeline_name, dagster_event=DagsterEvent( message=message, event_type_value=DagsterEventType.PIPELINE_PROCESS_STARTED.value, pipeline_name=pipeline_name, step_key=None, solid_handle=None, step_kind_value=None, logging_tags=None, event_specific_data=PipelineProcessStartedData( pipeline_name=pipeline_name, run_id=run_id, process_id=process_id), ), )
def build_process_started_event(run_id, pipeline_name, process_id): message = 'Started process {process_id} for pipeline {pipeline_name} run_id {run_id}'.format( pipeline_name=pipeline_name, run_id=run_id, process_id=process_id) return DagsterEventRecord( message=message, user_message=message, level=level_from_string('INFO'), run_id=run_id, timestamp=time.time(), error_info=None, pipeline_name=pipeline_name, dagster_event=DagsterEvent( event_type_value=DagsterEventType.PIPELINE_PROCESS_STARTED.value, pipeline_name=pipeline_name, step_key=None, solid_name=None, solid_definition_name=None, step_kind_value=None, tags=None, event_specific_data=PipelineProcessStartedData(process_id), ), )