Skip to content

[Refactor] Extract Callback Activation Logic #46

@yedidyakfir

Description

@yedidyakfir

Description

Extract callback activation from HatchetInvoker to a reusable, idempotent module.

Blocked by: #40, #42


Current Location

  • /mageflow/invokers/hatchet.py - run_success(), run_error()
  • /mageflow/signature/model.py - activate_success(), activate_error()

Target

  • Create /mageflow/orchestration/callbacks.py with idempotent activation
  • Add callbacks_activated flag to TaskSignature
  • Both in-task and external service use same logic

Metadata

Metadata

Assignees

No one assigned

    Labels

    phase: 2Phase 2 - Infrastructurepriority: mediumMedium priority featurerefactorCode restructuring

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions