nextflow.log

nextflow.log.get_datetime_from_line(line)

Gets the datetime from a line of the log file.

Parameters:

line (str) – a line from the log file.

Return type:

datetime.datetime

nextflow.log.get_finished_from_log(log)

Gets the time the pipeline ended from the log file.

Parameters:

log (str) – the contents of the log file.

Return type:

datetime.datetime

nextflow.log.get_process_end_from_log(log, process_id)

Gets a process’s end time from the .nextflow.log file as a datetime, given its unique ID, if it has finshed.

Parameters:
  • log (str) – The text of the log file.

  • process_id (str) – The process’s ID (eg. ‘1a/234bcd’).

Return type:

datetime

nextflow.log.get_process_name_from_log(log, process_id)

Gets a process’s name from the .nextflow.log file, given its unique ID.

Parameters:
  • log (str) – The text of the log file.

  • process_id (str) – The process’s ID (eg. ‘1a/234bcd’).

Return type:

str

nextflow.log.get_process_start_from_log(log, process_id)

Gets a process’s start time from the .nextflow.log file as a datetime, given its unique ID, if it has started.

Parameters:
  • log (str) – The text of the log file.

  • process_id (str) – The process’s ID (eg. ‘1a/234bcd’).

Return type:

datetime

nextflow.log.get_process_status_from_log(log, process_id)

Gets a process’s status (COMPLETED, ERROR etc.) from the .nextflow.log file, given its unique ID. If it’s still running, ‘-’ is returned.

Parameters:
  • log (str) – The text of the log file.

  • process_id (str) – The process’s ID (eg. ‘1a/234bcd’).

Return type:

string

nextflow.log.get_started_from_log(log)

Gets the time the pipeline was started from the log file.

Parameters:

log (str) – the contents of the log file.

Return type:

datetime.datetime

nextflow.log.log_is_finished(log)

Checks if the log file indicates the pipeline has finished.

Parameters:

log (str) – the contents of the log file.

Return type:

bool