Skip to content

Scheduler throwing error when schedule is set to @hourly and catchup_by_default is set to False #37869

Discussion options

You must be logged in to vote

Well that is more like troubleshooting rather than actual problem in airflow codebase or dependencies.

I've added just this variables when start official Apache Airflow image, and it works without any issues

    AIRFLOW__LOGGING__COLORED_CONSOLE_LOG: 'false
    AIRFLOW__SCHEDULER__CATCHUP_BY_DEFAULT: 'false'
    TZ: 'CET'
    AIRFLOW__CORE__DEFAULT_TIMEZONE: 'CET'
    AIRFLOW__WEBSERVER__DEFAULT_UI_TIMEZONE: 'CET'

What is wrong with your cause, it is hard to guess but my assumptions

  1. No TZ environment variable
  2. Or maybe because you overwrite symlink link by a regular file

You could try to replace

ENV TZ="CET"
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime \ 
    && echo $TZ > /etc/tim…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@Taragolis
Comment options

Answer selected by sudarshan2906
@sudarshan2906
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:bug This is a clearly a bug Can't Reproduce The problem cannot be reproduced pending-response area:core
2 participants
Converted from issue

This discussion was converted from issue #37842 on March 03, 2024 16:08.