Skip to content

Commit

Permalink
Merge pull request #243 from cityofaustin/ch-correct-attachments-view
Browse files Browse the repository at this point in the history
fix view for attachments
  • Loading branch information
Charlie-Henry authored Aug 7, 2024
2 parents 137fbaf + ec6a01a commit f1f4652
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions dags/atd_knack_markings_attachments.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# test locally: docker compose run --rm airflow-cli dags test atd_knack_markings_attachments

import os

from airflow.models import DAG
Expand All @@ -17,7 +19,7 @@
"email_on_failure": False,
"email_on_retry": False,
"retries": 0,
"execution_timeout": duration(minutes=30),
"execution_timeout": duration(minutes=60),
"on_failure_callback": task_fail_slack_alert,
}

Expand Down Expand Up @@ -59,7 +61,7 @@
) as dag:
docker_image = "atddocker/atd-knack-services:production"
app_name = "signs-markings"
container = "view_3103"
container = "view_3096"

date_filter_arg = get_date_filter_arg(should_replace_monthly=True)

Expand All @@ -68,6 +70,7 @@
t1 = DockerOperator(
task_id="atd_knack_markings_attachments_to_postgrest",
image=docker_image,
docker_conn_id="docker_default",
auto_remove=True,
command=f"./atd-knack-services/services/records_to_postgrest.py -a {app_name} -c {container} {date_filter_arg}",
environment=env_vars,
Expand All @@ -80,11 +83,11 @@
t2 = DockerOperator(
task_id="atd_knack_markings_attachments_to_agol",
image=docker_image,
docker_conn_id="docker_default",
auto_remove=True,
command=f"./atd-knack-services/services/records_to_agol.py -a {app_name} -c {container} {date_filter_arg}",
environment=env_vars,
tty=True,
force_pull=True,
mount_tmp_dir=False,
)

Expand Down

0 comments on commit f1f4652

Please sign in to comment.