-
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #350 from coderxio/jrlegrand/vsac
Jrlegrand/vsac
- Loading branch information
Showing
4 changed files
with
134 additions
and
122 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
from pathlib import Path | ||
import pendulum | ||
|
||
from sagerx import get_dataset, read_sql_file, get_sql_list, alert_slack_channel | ||
|
||
from airflow.decorators import dag, task | ||
|
||
from airflow.operators.python import get_current_context | ||
from airflow.providers.postgres.operators.postgres import PostgresOperator | ||
from airflow.hooks.postgres_hook import PostgresHook | ||
|
||
from common_dag_tasks import run_subprocess_command, extract | ||
from vsac.dag_tasks import main_execution | ||
|
||
|
||
|
||
@dag( | ||
schedule="0 3 * * *", | ||
start_date=pendulum.yesterday(), | ||
catchup=False, | ||
) | ||
def vsac(): | ||
dag_id = "vsac" | ||
base_url = "https://cts.nlm.nih.gov/fhir" | ||
ds_url = "" | ||
|
||
extract_load_task = main_execution() | ||
|
||
extract_load_task | ||
|
||
vsac() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters