def app_init_running(): running_applications = docker.get_all_running_applications() for (user, application) in running_applications: if not applications.get_application_started(user, application): print("Marking user: {}, application: {} as started" .format(user.login, application.application_id)) applications.set_application_started(user, application, True)
def downgrade(): started_applications = applications.get_all_started_applications() for a in started_applications: user = a[0] application = a[1] applications.set_application_started(user, application, False)
def upgrade(): running_applications = docker.get_all_running_applications() for a in running_applications: user = a[0] application = a[1] applications.set_application_started(user, application, True)