Skip to content

Commit

Permalink
fix params
Browse files Browse the repository at this point in the history
  • Loading branch information
vladimir2217 committed Dec 9, 2024
1 parent 5ea0865 commit a6b8adc
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions dags/roger/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,11 +267,12 @@ def setup_input_data(context, exec_conf):
dag_params = context["dag"].params

if dag_params.get("repository_id"):
logger.info(">>> repository_id supplied. Overriding repo.")
repos=[{
'repo': dag_params.get("repository_id"),
'branch': dag_params.get("branch_name"),
'commit_from': dag_params.get("commitid_from"),
'commit_to': dag_params.get("commitid_to")
'commitid_from': dag_params.get("commitid_from"),
'commitid_to': dag_params.get("commitid_to")
}]

# if no external repo is provided we assume to get the upstream task dataset.
Expand All @@ -288,8 +289,8 @@ def setup_input_data(context, exec_conf):
'repo': repo,
'branch': branch,
'path': f'{dag_id}/{upstream_id}',
'commit_from': None,
'commit_to': None
'commitid_from': None,
'commitid_to': None
} for upstream_id in upstream_ids]

# input_repo = exec_conf['input_repo']
Expand All @@ -315,8 +316,8 @@ def setup_input_data(context, exec_conf):
branch=r['branch'],
repo=r['repo'],
changes_only=r.get("commitid_from") is None,
commit_from=r.get("commitid_from"),
commit_to=r.get("commitid_to"),
changes_from=r.get("commitid_from"),
changes_to=r.get("commitid_to"),
lake_fs_client=client
)
logger.info(">>> end of downloading data")
Expand Down

0 comments on commit a6b8adc

Please sign in to comment.