
    wohj.                    L   d dl mZ d dlmZmZ d dlmZmZ  edg          Ze	                    d          dd	            Z
e                    d
          dd            Ze                    d          dd            Ze                    d          dd            ZddZdS )    )annotations)	APIRouterHTTPException)restart_system_componentsystem_statussystem)tagsz/system/statusreturndictc                     t                      S )N)r        /home/agent/.hermes/worktrees/FinanceManager-sprint15-household-import-transfer-reconciliation-v1/src/jarvis_finance/api/routers/system.pyget_system_statusr   
   s    ??r   z/system/restart-backendc                      t          d          S )Nbackend_restartr   r   r   restart_backendr      s    Ir   z/system/restart-frontendc                      t          d          S )Nfrontendr   r   r   r   restart_frontendr      s    Jr   z/system/restart-dashboardc                      t          d          S )N	dashboardr   r   r   r   restart_dashboardr      s    K   r   actionstrc                    	 t          |           S # t          $ r$}t          dt          |                    |d }~ww xY w)Ni  )status_codedetail)r   
ValueErrorr   r   )r   excs     r   r   r      sT    G'/// G G GCHH===3FGs    
?:?N)r
   r   )r   r   r
   r   )
__future__r   fastapir   r   "jarvis_finance.services.system_opsr   r   routergetr   postr   r   r   r   r   r   r   <module>r)      s7   " " " " " " , , , , , , , , V V V V V V V V	
	#	#	#     &''   (' '((      )(  ())! ! ! *)!G G G G G Gr   