Tihomir Surdilovic

Results 171 comments of Tihomir Surdilovic

dont diss sleep so much . it has very valid use its rly important for testing as well as waiting on certain time to trigger actions / continue. it should...

sleep in actions are important for testing . in a test you could have a fake action that just returns and use sleep to simulate diff exec times and test...

no, the before after can be used to simulate action exec time and action timeouts. the sleep state is useful yea to test wf exec timeout and state timeout but...

for polling there are couple ways, one is using sleep as described, another is polling via retries and backoff coefficient third is polling inside the action function itself

i think sleep state feels more naturan in some cases than sleep action which ppl associate with actual invocation of things..but can be argued as its preference. only problem is...

> but not for pooling for polling with sleep state think of simple operationState(perform action)->switchState(check result)->sleepState(sleep for x time)->loop back to operationState thats how i think you would do it...

I think this would be nice feature to add (even tho possibly very hard to implement). Also if I understand it right it targets idempotent actions where the first error...

Yes I updated some text in my answer above (please look again). The retry with this is tied to an error type. In this case we can either assume that...

Just to add as a general info thing, imo it is an anti-pattern to limit retries via MaxAttempt (outside test scenarios). For most use cases you should limit your overall...

> but MaxAttempt is useful when we want fast-to-fail if we support multi retry strategy. I think this really depends on the action timeout (single action execution limit). If you...