You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Another possibility is to make everything an adapter, which can have adapters who know about their parent, in which case steps just adapters methods or plain callbacks, which can orchestrate other steps of other adapters which are in a mapping structure, and defining a step is just defining a method or setting callbacks which may depend on methods priorly executed without errors because going through .steps.method() creates a safe clone (thanks @Ian-Foote !)
A step is a callback, but steps is a magic python object, it just calls a step callback(s) in an safe (clone) adapter context.
In this case everything is an adapter, and executing a method through steps do a safe clone before actually calling the callback, that's why we need not to worry about it from the callbacks themselves. But if you want to code like this, jeez, there will be a lot of python magic ....
Is this more what it should look like ?
The text was updated successfully, but these errors were encountered:
Another possibility is to make everything an adapter, which can have adapters who know about their parent, in which case steps just adapters methods or plain callbacks, which can orchestrate other steps of other adapters which are in a mapping structure, and defining a step is just defining a method or setting callbacks which may depend on methods priorly executed without errors because going through .steps.method() creates a safe clone (thanks @Ian-Foote !)
A step is a callback, but steps is a magic python object, it just calls a step callback(s) in an safe (clone) adapter context.
https://gist.github.com/jpic/9f9ef74e5ab739b4ffd04ecc373d1d55
In this case everything is an adapter, and executing a method through steps do a safe clone before actually calling the callback, that's why we need not to worry about it from the callbacks themselves. But if you want to code like this, jeez, there will be a lot of python magic ....
Is this more what it should look like ?
The text was updated successfully, but these errors were encountered: