zlacker

[parent] [thread] 3 comments
1. abelan+(OP)[view] [source] 2024-03-09 04:46:47
We did it because there are methods that should be accessed which don't map to `args` cleanly. For example, we let users call `context.log`, `context.done` (to determine whether to return on cancellation) or `context.step_output` (to dynamically access a parent's step output). Perhaps there's a more pythonic way to do this? Admittedly this is a pattern we adapted from Go.
replies(2): >>kamika+X >>krawcz+Y5
2. kamika+X[view] [source] 2024-03-09 05:01:53
>>abelan+(OP)
Probably just have it attached to self, like self.context

But nbd IMHO

replies(1): >>krawcz+76
3. krawcz+Y5[view] [source] 2024-03-09 06:21:35
>>abelan+(OP)
you could just make them optional arguments that you inject if they're declared. Happy to chat more. With Hamilton we could actually build an alternative way to describe your API pretty easily...
◧◩
4. krawcz+76[view] [source] [discussion] 2024-03-09 06:23:05
>>kamika+X
yep nbd, but :/
[go to top]