Skip to content

Commit

Permalink
final changes before commit
Browse files Browse the repository at this point in the history
  • Loading branch information
ismaelcv committed Aug 25, 2024
1 parent 1949a31 commit 4a7ca09
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion chapter08/dags/01_python.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

MOVIELENS_HOST = os.environ.get("MOVIELENS_HOST", "movielens")
MOVIELENS_SCHEMA = os.environ.get("MOVIELENS_SCHEMA", "http")
MOVIELENS_PORT = os.environ.get("MOVIELENS_PORT", "5000")
MOVIELENS_PORT = os.environ.get("MOVIELENS_PORT", "8081")

MOVIELENS_USER = os.environ["MOVIELENS_USER"]
MOVIELENS_PASSWORD = os.environ["MOVIELENS_PASSWORD"]
Expand Down
2 changes: 1 addition & 1 deletion chapter08/dags/05_deferrable_sensor.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from datetime import datetime, timedelta
from airflow import DAG

from custom.operators import MovielensFetchOperator
from custom.operators import MovielensFetchRatingsOperator
from custom.triggers import MovielensSensorAsync

with DAG(
Expand Down
4 changes: 2 additions & 2 deletions chapter08/dags/custom/triggers.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def __init__(self,
def execute(self, context: Context) -> None:

self.defer(
trigger=MovielensRatingsTrigger(
trigger=MovielensTrigger(
conn_id=self._conn_id,
sleep_interval=self._sleep_interval,
start_date=self._start_date,
Expand Down Expand Up @@ -67,7 +67,7 @@ def __init__(self,


def serialize(self):
return ("custom.triggers.MovielensRatingsTrigger", {
return ("custom.triggers.MovielensTrigger", {
"sleep_interval": self._sleep_interval,
"conn_id": self._conn_id,
"start_date": self._start_date,
Expand Down

0 comments on commit 4a7ca09

Please sign in to comment.