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
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy