Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(24)  |  Call(24)  |  Derive(0)  |  Import(0)

src/b/r/brender-HEAD/brender/server/controllers/shows.py   brender(Download)
        path_linux=request.form['path_linux'],
        path_osx=request.form['path_osx'])
    db.session.add(show)
    db.session.commit()
 
        s_active = Setting.query.filter_by(name = 'active_show').first()
        s_active.value = show.id
    db.session.add(s_active)
    db.session.commit()
    return jsonify(status='done')
        show_setting.value = next
        print '[Debug] Show was active removing show from being active_show'
        db.session.add(show_setting)
        db.session.commit()
 
    show.path_linux = request.form['path_linux']
    show.path_osx = request.form['path_osx']
    db.session.add(show)
    db.session.commit()
    return jsonify(status='done')

src/b/r/brender-HEAD/brender/server/controllers/jobs.py   brender(Download)
        status='ready',
        priority=50)
    db.session.add(job)
    db.session.commit()
 
 
    job.status = 'running'
    db.session.add(job)
 
    shot.current_frame = job.chunk_end
    db.session.add(shot)
        if job:
            job.status = 'running'
            db.session.add(job)
            db.session.commit()
            start_job(worker, job)
    job = Job.query.get(job_id)
    job.status = 'ready'
    db.session.add(job)
    db.session.commit()
 

src/b/r/brender-HEAD/brender/server/controllers/workers.py   brender(Download)
def update_worker(worker, worker_data):
    if worker.connection != 'offline':
        worker.connection = 'online'
        db.session.add(worker)
        db.session.commit()
        if val:
            setattr(worker, key, val)
    db.session.add(worker)
    db.session.commit()
    print('status ', worker.status)
        worker = Worker.query.get(v['id'])
        worker.connection = v['connection']
        db.session.add(worker)
        db.session.commit()
 

src/b/r/brender-HEAD/brender/server/controllers/shots.py   brender(Download)
            if shot.status != 'running':
                shot.status = 'running'
                db.session.add(shot)
                db.session.commit()
                print ('[debug] Dispatching jobs')       
                stop_jobs(shot.id)
                shot.status = 'stopped'
                db.session.add(shot)
                db.session.commit()
        else:
                shot.current_frame = shot.frame_start
                shot.status = 'ready'
                db.session.add(shot)
                db.session.commit()
 
        priority=10)
 
    db.session.add(shot)
    db.session.commit()
 

src/b/r/brender-HEAD/brender/server/controllers/home.py   brender(Download)
        print('This worker connected before, updating IP address')
        worker.ip_address = ip_address
        db.session.add(worker)
        db.session.commit()
 
                        ip_address=ip_address)
 
        db.session.add(worker)
        db.session.commit()
 

src/b/r/brender-HEAD/brender/server/controllers/settings.py   brender(Download)
            print('[Debug] Creating %s %s') % \
            (setting_name, request.form[setting_name])
        db.session.add(setting)
        db.session.commit()
    return jsonify(reponse='updated')

src/l/s/lsdj-sav-utils-HEAD/server/server/views.py   lsdj-sav-utils(Download)
        sav_id=sav_id, percent_complete=0, status_message="", failed=False)
 
    db.session.add(sav_progress)
    db.session.commit()
 

src/l/s/lsdj-sav-utils-HEAD/server/server/utils.py   lsdj-sav-utils(Download)
    f.save(os.path.join(directory_path, "lsdj.sav"))
 
    db.session.add(sav_obj)
    db.session.commit()
 

src/l/s/lsdj-sav-utils-HEAD/server/server/async.py   lsdj-sav-utils(Download)
        savfile_progress.percent_complete = percent_complete
 
        db.session.add(savfile_progress)
        db.session.commit()