Skip to content

Commit

Permalink
Upload manifest dag
Browse files Browse the repository at this point in the history
  • Loading branch information
BAntonellini committed Feb 27, 2024
1 parent 8d500b7 commit 0a0344b
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions orchestrate/dags/upload_manifest.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
from airflow import DAG
from airflow.decorators import dag, task
from operators.datacoves.dbt import DatacovesDbtOperator
from pendulum import datetime

# Only here for reference, this is automatically activated by Datacoves Operator
DATACOVES_VIRTIAL_ENV = "/opt/datacoves/virtualenvs/main/bin/activate"


@dag(
default_args={
"start_date": datetime(2022, 10, 10),
"owner": "Noel Gomez",
"email": "gomezn@example.com",
"email_on_failure": True,
},
catchup=False,
tags=["version_1"],
description="Datacoves Sample dag",
# This is a regular CRON schedule. Helpful resources
# https://cron-ai.vercel.app/
# https://crontab.guru/
schedule_interval="0 0 1 */12 *",
)
def upload_manifest():

# Calling dbt commands
dbt_debug_upload = DatacovesDbtOperator(
task_id = "run_dbt_task",
bash_command = "dbt debug",
upload_manifest=True
)
dbt_debug_upload


# Invoke Dag
dag = upload_manifest()

0 comments on commit 0a0344b

Please sign in to comment.