is dynamic decorator will support on_failure option like workflow decorator workflow(on_failure=&lt...
a
is dynamic decorator will support on_failure option like workflow decorator workflow(on_failure=<task_name>) dynamic(on_failure=<task_name>) if not what is the other options can do with dynamic?
a
hey @acoustic-parrot-22802 > is dynamic decorator will support on_failure option like workflow decorator no, currently @dynamic doesn't support all the attributes that @workflow supports. The alternative mentioned in this issue (Map over launchplans) is available today in Union: https://docs.union.ai/byoc/user-guide/core-concepts/launch-plans/mapping-over-launch-plans#mapping-over-launch-plans
g
workaround it to use dynamic in the workflow
Copy code
@workflow(on_failure=....)
def wf(...):
  dynamic_task(...)
a
means? @workflow(on_failure=...) def wf(): @dyanmic(): creating_bucket()-----> these are task names calling to run processing()-----> same am I correcly understand?
@glamorous-carpet-83516 can you please check
g
right
a
let me try
g
but I’m not sure if you could define dynamic inside the workflow, if not
Copy code
@dyanmic():
def creating_bucket()-----> these are task names calling to run
    processing()-----> same

@workflow(on_failure=....)
def wf(...):
  creating_bucket(...)