Skip to content

Using empty stateStartApiSuccess to indicate success #520

@longquanzheng

Description

@longquanzheng

commandRes.StateStartApiSucceeded = iwfidl.PtrBool(errStartApi == nil)

99.99% of the time, the value is true and we have to pass "stateStartApiSuccess":true to worker. We could make the field default as true so that we don't have to send this value.

However, a bool field default to true may be a bit confusing, so we could rename it to stateWaitUntilFailed in the IDL.
SDK can be adapted to the value

(old) -> (new)
start -> waitUntil
decide -> execute

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions