def transition_waiting(start_time, conn=None):
    """

    :param start_time: <float> timestamp
    :param conn: <rethinkdb.DefaultConnection>
    :return: <dict> standard rethinkdb output dict
    """
    wait_filter = waiting_filter(start_time, conn)
    status_change = {STATUS_FIELD: transition_success(WAITING)}
    if RBO.index_list().contains(IDX_OUTPUT_JOB_ID).run(conn):
        # NEW
        return RBJ.get_all(WAITING, index=IDX_STATUS).filter(wait_filter).update(status_change).run(conn)
    else:
        #OLD
        return RBJ.filter(wait_filter).update(status_change).run(conn)
def transition_waiting ( start_time , conn = None ) : wait_filter = waiting_filter ( start_time , conn ) status_change = { STATUS_FIELD : transition_success ( WAITING ) } if RBO . index_list ( ) . contains ( IDX_OUTPUT_JOB_ID ) . run ( conn ) : return RBJ . get_all ( WAITING , index = IDX_STATUS ) . filter ( wait_filter ) . update ( status_change ) . run ( conn ) else : return RBJ . filter ( wait_filter ) . update ( status_change ) . run ( conn )
:param start_time: <float> timestamp
    :param conn: <rethinkdb.DefaultConnection>
    :return: <dict> standard rethinkdb output dict