def _create_module(self, module_configuration, port): max_instances = self._module_to_max_instances.get( module_configuration.module_name) threadsafe_override = self._module_to_threadsafe_override.get( module_configuration.module_name) module_args = (module_configuration, self._host, port, self._api_host, self._api_port, self._auth_domain, self._runtime_stderr_loglevel, self._php_config, self._python_config, self._cloud_sql_config, self._port, self._port_registry, self._request_data, self, max_instances, self._use_mtime_file_watcher, self._automatic_restart, self._allow_skipped_files, threadsafe_override) if module_configuration.manual_scaling: _module = module.ManualScalingModule(*module_args) elif module_configuration.basic_scaling: _module = module.BasicScalingModule(*module_args) else: _module = module.AutoScalingModule(*module_args) if port != 0: port += 1 return _module, port
def _create_module(self, module_configuration, port, external_port=None): max_instances = self._module_to_max_instances.get( module_configuration.module_name) module_args = (module_configuration, self._host, port, self._api_port, self._auth_domain, self._runtime_stderr_loglevel, self._php_executable_path, self._enable_php_remote_debugging, self._python_config, self._cloud_sql_config, self._port, self._port_registry, self._request_data, self, max_instances, self._use_mtime_file_watcher, self._automatic_restart, self._allow_skipped_files) module_kwargs = {'external_api_port': external_port} if module_configuration.manual_scaling: _module = module.ManualScalingModule(*module_args, **module_kwargs) elif module_configuration.basic_scaling: _module = module.BasicScalingModule(*module_args, **module_kwargs) else: _module = module.AutoScalingModule(*module_args, **module_kwargs) if port != 0: port += 1000 return _module, port