Repository URL to install this package:
| 
      
        
        
        Version: 
        
         
          
          5.2.8-5.2  ▾
        
         | 
| 
    
    python3-dmapi-el9
  
    /
        
    usr
  
        /
        
    lib
  
        /
        
    python3.9
  
        /
        
    site-packages
  
        /
        
    dmapi
  
        /
        
    cmd
  
        /
        
    __pycache__
  
        /
        api.cpython-39.pyc
   | 
|---|
a
    [r`e×  ã                   @   s   d Z ddlZddlmZ ddlmZ ddlmZ	 ddl
ZddlZ
ddl
mZ ddl
mZ ddl
mZ dd	l
mZ dd
l
mZ e
jjZdd ZdS )
z
   Starter script for DM API.
é    N)Úlog)Úguru_meditation_report)Úopts)Úconfig)Ú	exception)Úservice)Úutils)Úversionc                  C   sH  t jtjdgd t td¡ t ¡  t	 
t¡ t t¡} t
jjttd t ¡ }d}tjD ]À}|tjv }z|tj||d}z|j||jd W nL tyÚ } z4|  d |t ¡ ¡¡ |j|t ¡ d W Y d }~n
d }~0 0 |d	7 }W q\ tjy } z|  d
|¡ W Y d }~q\d }~0 0 q\|dkr<|  d¡ t  d	¡ | !¡  d S )Nz9/etc/triliovault-datamover/triliovault-datamover-api.conf)Zdefault_config_filesÚdmapi)Úconfr   )Zuse_ssl)Úworkersza{0}, could not found dmapi_workers in conf file, setting dmapi workers to the available cores{1}.é   zK%s. ``dmapi_enabled_apis`` includes bad values. Fix to remove this warning.zANo APIs were started. Check the dmapi_enabled_apis config option.)"r   Ú
parse_argsÚsysÚargvÚloggingZsetupÚCONFr   Zmonkey_patchÚgmr_optsÚset_defaultsZ	getLoggerÚ__name__ÚgmrZTextGuruMeditationZ
setup_autorunr	   r   Zprocess_launcherZdmapi_enabled_apisZdmapi_enabled_ssl_apisZWSGIServiceZlaunch_servicer   Ú	ExceptionZwarningÚformatÚmpÚ	cpu_countr   ZPasteAppNotFoundÚerrorÚexitÚwait)r   ZlauncherÚstartedZapiZshould_use_sslZserverZ	worker_exÚex© r    ú1/usr/lib/python3.9/site-packages/dmapi/cmd/api.pyÚmain   s4    
(ÿ
r"   )Ú__doc__r   Zoslo_logr   r   Zoslo_reportsr   r   r   r   Zmultiprocessingr   Z
dmapi.confr
   r   r   r   r   r	   r   r   r"   r    r    r    r!   Ú<module>   s