Skip to content

Reconsider AX recording whether a task completed or failed #747

Done

Description

@rakyll

Draft PR #743 has AX record a task as Completed or Failed from a status file its agent writes, and it shows how complicated collecting that signal is. AX has to poll every running task's runner through atenet-router, keep a working queue of the tasks whose end is not recorded yet, avoid resuming suspended actors, and run a separate single-replica observer to do it. Most sophisticated tasks will bring their own communication protocol for these events, such as a task API that reports progress, results and failures to their own systems. Those protocols carry far more than COMPLETED or FAILED, and AX's copy of the outcome would be a second, coarser source of truth. Should AX stay out of judging how a task ended, and leave it to the task's own protocol?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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