def get_supervisor_program_name(service, environment_name): if service == "webworkers": return get_django_webworker_name(environment_name) elif service == "formplayer": return get_formplayer_instance_name(environment_name) elif service == "formplayer-spring": return get_formplayer_spring_instance_name(environment_name)
def supervisor_process_name(self): return get_django_webworker_name(self.environment)
def supervisor_process_name(self): return get_django_webworker_name(self.environment)
def set_djangoapp_supervisorconf(): django_worker_name = get_django_webworker_name(env.env_name) if _check_in_roles(ROLES_DJANGO): _rebuild_supervisor_conf_file( 'make_supervisor_conf', 'supervisor_django.conf', {"django_worker_name": django_worker_name})