Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2025 09:51 AM
Use dbutils notebook exit("SKIP") instead of exiting with an error.
In Databricks Workflows:
EXIT with "SKIP" → treated as SKIPPED
EXIT with "STOP" or raising an exception → counted as FAILED
Modify your code like this:
if business_day_count == 3:
print("Today is the 3rd working day → Continue workflow")
else:
print("Not the 3rd working day → Skip workflow")
dbutils.notebook.exit("SKIP")
Now your workflow can be scheduled every weekday without generating failures.
This is the simplest fix.