Skip to content

Commit

Permalink
fix(ingest): correct profile_day_of_week reference
Browse files Browse the repository at this point in the history
Condition check mixed profile_date_of_month variable in
profile_day_of_week section
  • Loading branch information
jordanjeremy committed Jul 1, 2024
1 parent c7f83a3 commit df79098
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,10 @@ def is_profiling_enabled(operation_config: OperationConfig) -> bool:
today = datetime.date.today()
if (
operation_config.profile_day_of_week is not None
and operation_config.profile_date_of_month != today.weekday()
and operation_config.profile_day_of_week != today.weekday()
):
logger.info(
"Profiling won't be done because weekday does not match config profile_date_of_month.",
"Profiling won't be done because weekday does not match config profile_day_of_week.",
)
return False
if (
Expand Down

0 comments on commit df79098

Please sign in to comment.