Database

database.open_db()[source]

Opens the database

database.update_state(db, new_state, job_id)[source]

Update the state in db for the job job_id if it is less than new_state