src/dirbs/metadata.py
def most_recent_job_start_time_by_command(conn, command, subcommand=None, successful_only=False):
    """
    Get the start_time of the most recent successful job for the importer.

    Arguments:
        conn: dirbs db connection object
        command: name of the command
        subcommand: name of the sub-command, default is None
        successful_only: bool if true only successful jobs will be filtered, default is False
    Returns:
        start time of the most recent job if exists else None
    """
    job_for_command_runs_list = query_for_command_runs(conn,
                                                       command,
                                                       subcommand=subcommand,
                                                       successful_only=successful_only)
    if not job_for_command_runs_list:
        return None
    return job_for_command_runs_list[0].start_time

    Get the start_time of the most recent successful job for the importer.

    Arguments:
        conn: dirbs db connection object
        command: name of the command
        subcommand: name of the sub-command, default is None
        successful_only: bool if true only successful jobs will be filtered, default is False
    Returns:
        start time of the most recent job if exists else None
    
Get the start_time of the most recent successful job for the importer.
Get the start_time of the most recent successful job for the importer .
def most_recent_job_start_time_by_command(conn, command, subcommand=None, successful_only=False):
    job_for_command_runs_list = query_for_command_runs(conn,
                                                       command,
                                                       subcommand=subcommand,
                                                       successful_only=successful_only)
    if not job_for_command_runs_list:
        return None
    return job_for_command_runs_list[0].start_time
def most_recent_job_start_time_by_command ( conn , command , subcommand = None , successful_only = False ) : job_for_command_runs_list = query_for_command_runs ( conn , command , subcommand = subcommand , successful_only = successful_only ) if not job_for_command_runs_list : return None return job_for_command_runs_list [ 0 ] . start_time
Get the start_time of the most recent successful job for the importer.
Get the start_time of the most recent successful job for the importer .
"""
    Get the start_time of the most recent successful job for the importer.

    Arguments:
        conn: dirbs db connection object
        command: name of the command
        subcommand: name of the sub-command, default is None
        successful_only: bool if true only successful jobs will be filtered, default is False
    Returns:
        start time of the most recent job if exists else None
    """
start time of the most recent job if exists else None
start time of the most recent job if exists else None
conn
dirbs db connection object
dirbs db connection object
command
name of the command
name of the command
subcommand
name of the sub-command, default is None
name of the sub - command default is None
successful_only
bool if true only successful jobs will be filtered, default is False
bool if true only successful jobs will be filtered default is False