Handling rollback & compensation by using Python SDK


Is it possible to run compensation actions in case of failure by using the Python SDK ?
Are there any samples regarding with rollback and compensation activities ?

Thank you!

Yes, you can run Python code using normal Python constructs inside of workflows. So if you need to run something in an except clause (or collect multiple things to run or use decorators or whatever), you can.