Parash
07/03/2024, 1:54 PMMarvin
07/03/2024, 1:54 PMtzdata
and set the timezone configuration:
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update -y && apt-get install -y tzdata
This will set the timezone to UTC.
2. Fallback to UTC in Code:
Consider handling the missing timezone gracefully by falling back to UTC in your Prefect setup. Ensure your code catches this specific error and sets the timezone to UTC as a fallback.
For more details, refer to these GitHub issues discussing similar problems:
- Gracefully handle missing timezone configuration (https://github.com/PrefectHQ/prefect/issues/8047)
- RuntimeError: Unable to find any timezone configuration (https://github.com/PrefectHQ/prefect/issues/3061)
These should help you mitigate the error. If needed, please provide more context about your setup, and I can assist further.