소스 검색

switching to ssh conn

Avik Datta 4 년 전
부모
커밋
6aef004013
1개의 변경된 파일6개의 추가작업 그리고 6개의 파일을 삭제
  1. 6 6
      dags/dag1_calculate_hpc_worker.py

+ 6 - 6
dags/dag1_calculate_hpc_worker.py

@@ -14,12 +14,12 @@ args = {
     'provide_context': True,
 }
 
-hpc_hook = SSHHook(
-      remote_host=Variable.get('hpc_host'),
-      username=Variable.get('hpc_user'),
-      key_file=Variable.get('igf_lims_ssh_key_file')
-    )
-
+#hpc_hook = SSHHook(
+#      remote_host=Variable.get('hpc_host'),
+#      username=Variable.get('hpc_user'),
+#      key_file=Variable.get('igf_lims_ssh_key_file')
+#    )
+hpc_hook = SSHHook(ssh_conn_id='hpc_conn')
 
 dag = DAG(
         dag_id='dag1_calculate_hpc_worker',