Noam
08/19/2024, 3:59 PMChecking for cancelled flow runs
. Can you explain more about it and if its something I can configure to a larger intervals?Marvin
08/19/2024, 3:59 PMNoam
08/19/2024, 4:03 PMMarvin
08/19/2024, 4:03 PMlogging.yml
file. Prefect looks for this configuration file in /.prefect/logging.yml
or a path specified by PREFECT_LOGGING_SETTINGS_PATH
.
- Refer to the Prefect logging documentation here for examples and details.
2. Prefect Loggers:
- Use get_run_logger
to access the Prefect logger within your flows and tasks. Ensure that you're using it correctly within your code.
- Here’s a basic example:
python
from prefect import flow, get_run_logger
@flow(name="log-example-flow")
def logger_flow():
logger = get_run_logger()
<http://logger.info|logger.info>("INFO level log message.")
- This ensures logs are captured and can be viewed in the Prefect UI.
3. Environment Variables:
- Setting environment variables like PREFECT_LOGGING_EXTRA_LOGGERS
can be crucial, especially when using additional loggers like Dask.
- Example: PREFECT_LOGGING_EXTRA_LOGGERS=dask
4. Known Issues:
- There are some known issues related to logs not being visible, especially when using Dask or running flows in certain environments like Kubernetes.
- Example issue: Custom logs from tasks running on a Dask cluster are not showing in the Prefect UI
- For a more specific case, if you're using Dask, ensure that your setup correctly routes the logs. Here’s a GitHub issue that dives deeper into it: Dask task logs not showing in Prefect Cloud
5. Version and Updates:
- Ensure that you are using a compatible and updated version of Prefect.
- Verify settings related to the environment and deployment configurations, especially in containerized environments.
If these steps do not resolve the issue, you may consider sharing logs, configurations, and specific environmental details with the Prefect community or support for more focused troubleshooting.
For more detailed information, please refer to the official Prefect documentation and the provided GitHub issues.Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.
Powered by