src/dirbs/metadata.py
def add_time_metadata(conn, job_command, run_id, path):
    """
    Log additional JSON metadata about this job but leave core fields unchanged.

    Arguments:
        conn: dirbs db connection object
        job_command: name of the command for the job
        run_id: id of the currently running job
        path: No idea about it, might be the path to the file generated by the job
    """
    # An auto-commit connection must be used to ensure the log is not rolled back due to any reason, it
    # must be preserved.
    assert conn.autocommit
    with conn.cursor() as cursor:
        cursor.execute("""UPDATE job_metadata
                             SET extra_metadata = jsonb_set(extra_metadata, %s, to_jsonb(NOW()))
                           WHERE command = %s
                             AND run_id = %s""",
                       [path, job_command, run_id])
        assert cursor.rowcount == 1

    Log additional JSON metadata about this job but leave core fields unchanged.

    Arguments:
        conn: dirbs db connection object
        job_command: name of the command for the job
        run_id: id of the currently running job
        path: No idea about it, might be the path to the file generated by the job
    
Log additional JSON metadata about this job but leave core fields unchanged.
Log additional JSON metadata about this job but leave core fields unchanged .
def add_time_metadata(conn, job_command, run_id, path):
    assert conn.autocommit
    with conn.cursor() as cursor:
        cursor.execute("""UPDATE job_metadata
                             SET extra_metadata = jsonb_set(extra_metadata, %s, to_jsonb(NOW()))
                           WHERE command = %s
                             AND run_id = %s""",
                       [path, job_command, run_id])
        assert cursor.rowcount == 1
def add_time_metadata ( conn , job_command , run_id , path ) : assert conn . autocommit with conn . cursor ( ) as cursor : cursor . execute ( """UPDATE job_metadata
                             SET extra_metadata = jsonb_set(extra_metadata, %s, to_jsonb(NOW()))
                           WHERE command = %s
                             AND run_id = %s""" , [ path , job_command , run_id ] ) assert cursor . rowcount == 1
Log additional JSON metadata about this job but leave core fields unchanged.
Log additional JSON metadata about this job but leave core fields unchanged .
"""
    Log additional JSON metadata about this job but leave core fields unchanged.

    Arguments:
        conn: dirbs db connection object
        job_command: name of the command for the job
        run_id: id of the currently running job
        path: No idea about it, might be the path to the file generated by the job
    """ # An auto-commit connection must be used to ensure the log is not rolled back due to any reason, it # must be preserved.
conn
dirbs db connection object
dirbs db connection object
job_command
name of the command for the job
name of the command for the job
run_id
id of the currently running job
id of the currently running job
path
No idea about it, might be the path to the file generated by the job
No idea about it might be the path to the file generated by the job