Replies: 2 comments 3 replies
-
Issue #1, your task.run() call is invalid, your Issue #2, in your ip_update exception handler code, you are still setting failed=True which will cause a There are different ways you can solve this depending on the broader context of what you are doing (i.e. not return failed=True and an exception from the ip_update subtask) or catch the exception at the Note, your broader pattern of looping over IPs and calling Regards, Kirk |
Beta Was this translation helpful? Give feedback.
-
In addition to what Kirk said, read this https://nornir.readthedocs.io/en/latest/tutorial/failed_tasks.html |
Beta Was this translation helpful? Give feedback.
-
Hello,
I have a task, which contains a loop where a lot of subtasks is executed.
If one of the subtasks fails, I want to continue on other subtasks.
Is there a way to continue on a loop of subtasks if some of them fail?
Currently, the whole task will end when the first exception occurs and it won't continue on the loop.
Thank you
Beta Was this translation helpful? Give feedback.
All reactions