cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Force to skip the recipe function(callable recipe) from parent recipe

prp_proton
Deputy Chef II
Deputy Chef II

I do not want a specific recipe function to be called from all the existing recipe where ever it is used.

It will be difficult task to check the dependency of the recipe function and change the code in the all the recipe.

If I just put a stop inside the recipe function, it will not be used anymore. But as the recipe function is called, it will consume a single task.

Is there possible way, we can force the recipe function to be skipped in all the places where ever it is used?

Thank you.

 

 

 

1 ACCEPTED SOLUTION

gary1
Executive Chef II
Executive Chef II

You know each recipe has a dependency graph, right? This graph should give you a hit list of all of the calling recipes you would need to update. Not sure how many dependent recipes you have, but unless it's in the hundreds it shouldn't take that long.

If the dependent recipes are calling it asynchronously, then all you have to do is skip the call. If they call it synchronously and are expecting a response, then yeah it might take a little elbow grease to make all of the updates.

Either you do the work, or add the stop and eat the task : )

View solution in original post

3 REPLIES 3

gary1
Executive Chef II
Executive Chef II

You know each recipe has a dependency graph, right? This graph should give you a hit list of all of the calling recipes you would need to update. Not sure how many dependent recipes you have, but unless it's in the hundreds it shouldn't take that long.

If the dependent recipes are calling it asynchronously, then all you have to do is skip the call. If they call it synchronously and are expecting a response, then yeah it might take a little elbow grease to make all of the updates.

Either you do the work, or add the stop and eat the task : )

pavan-narayan
Deputy Chef III
Deputy Chef III

Are you calling the Child Recipe - Synchronous or Asynchronous ?

It is getting called in both ways.