Skip to content

Custom Apache Airflow operator for launching pm2 tasks

License

Notifications You must be signed in to change notification settings

tkp-archive/airflow-pm2

Repository files navigation

airflow-pm2

Custom Apache Airflow operator for launching pm2 tasks

Build Status Coverage License PyPI

from airflow.models import DAG
from airflow_pm2 import PM2Operator

ecosystem = '''{
  "name" : "node-app-1",
  "script" : "app.js",
  "cwd" : "/srv/node-app-1/current"
}'''

dag = DAG(
    dag_id='example_pm2_operator',
    schedule_interval='0 0 * * *'
)

operator = PM2Operator(
    task_id="myjob",
    ecosystem=ecosystem,
)

if __name__ == "__main__":
    dag.cli()

About

Custom Apache Airflow operator for launching pm2 tasks

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published