We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aafb09e commit ca231abCopy full SHA for ca231ab
dags/nycmesh_generate_omni_cert.py
@@ -1,4 +1,5 @@
1
import datetime
2
+import sys
3
4
from airflow.sdk import dag, task
5
@@ -78,6 +79,9 @@ def omni_cert_dag():
78
79
task_id="certbot_omni_nn_certv1"
80
)
81
def omni_nn_cert_task():
82
+ import subprocess
83
+ subprocess.check_call(f"{sys.executable} -m pip install certbot paramiko==3.5.0 scp==0.15.0", check=True)
84
+
85
# Imports inside of the virtual environment
86
from paramiko import SSHClient, AutoAddPolicy
87
from scp import SCPClient
0 commit comments