Poorva21
Contributor II

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.