def save_load(jid, load):
    with _get_serv(commit=True) as cur:

        sql = '''INSERT INTO `jids`
               (`jid`, `load`)
                VALUES (%s, %s)'''

        try:
            cur.execute(sql, (jid, json.dumps(load)))
        except MySQLdb.IntegrityError:
            # https://github.com/saltstack/salt/issues/22171
            # Without this try:except: we get tons of duplicate entry errors
            # which result in job returns not being stored properly
            pass
General draw method for RGB image types.
dataset/ETHPy150Open saltstack/salt/salt/returners/mysql.py/save_load--crossover with--dataset/ETHPy150Open ejeschke/ginga/ginga/canvas/types/image.py/Image.draw