18 lines
377 B
Python
18 lines
377 B
Python
"""Airflow DAGの定義ファイル"""
|
|
from airflow import DAG
|
|
from airflow.operators.bash import BashOperator
|
|
from datetime import datetime
|
|
|
|
with DAG(
|
|
dag_id="run_job_py",
|
|
start_date=datetime(2024, 1, 1),
|
|
schedule_interval="@daily",
|
|
catchup=False,
|
|
) as dag:
|
|
|
|
run_job = BashOperator(
|
|
task_id="run_job",
|
|
bash_command="python main.py",
|
|
)
|
|
|