You have error in your code. To set a task value you should use dbutils.job.taskValues.set command. Instead, in  code you've provided you're using dbutils.job.taskValues.get.
Look at below picture. Here I have sample notebook where I'm setting status to "success"

szymon_dybczak_2-1727184822477.png

Then I created sample workflow:

szymon_dybczak_0-1727184733859.png

In if/else task I'm reffering to task value in following way:

szymon_dybczak_1-1727184765037.png

 

 

View solution in original post