@publisher(['animation', 'shot previs'], publisher_type=POST_PUBLISHER_TYPE)
def update_shot_range():
    from stalker import db, Shot
    from anima.env import mayaEnv
    m = mayaEnv.Maya()
    v = m.get_current_version()

    shot = v.task.parent
    if shot and isinstance(shot, Shot):
        shot_node = pm.ls(type='shot')[0]
        start_frame = shot_node.startFrame.get()
        end_frame = shot_node.endFrame.get()
        shot.cut_in = int(start_frame)
        shot.cut_out = int(end_frame)
        db.DBSession.commit()
Wait for any providers registered with the collector to have
dataset/ETHPy150Open eoyilmaz/anima/anima/env/mayaEnv/publish.py/update_shot_range--crossover with--dataset/ETHPy150Open onefinestay/nameko/nameko/extensions.py/ProviderCollector.wait_for_providers