コード例 #1
0
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)
コード例 #2
0
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)
コード例 #3
0
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)