https://dagster.io/ logo
#ask-ai
Title
# ask-ai
a

Andrea Montes

03/08/2024, 7:42 PM
@Scout can I add logging messages to a schedule?
s

Scout

03/08/2024, 7:42 PM
Yes, you can add logging messages to a schedule in Dagster. Any schedule can emit log messages during its evaluation function. Here's an example from the documentation on how to do this:
Copy code
python from dagster import schedule  @schedule(job=my_job, cron_schedule="* * * * *") def logs_then_skips(context):     <http://context.log.info|context.log.info>("Logging from a schedule!")     return SkipReason("Nothing to do")
These logs can be viewed when inspecting a tick in the tick history view on the corresponding schedule page in the Dagster UI. Make sure that your Dagster instance's compute log storage is configured properly to view your schedule logs.