Example #1
0
 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)
Example #2
0
 def supervisor_process_name(self):
     return get_django_webworker_name(self.environment)
Example #3
0
 def supervisor_process_name(self):
     return get_django_webworker_name(self.environment)
Example #4
0
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})