Skip to content

V1 demo code question #275

@baodong-openmart

Description

@baodong-openmart

func(ctx worker.HatchetContext, input SimpleInput) (any, error) {
fmt.Println("ToLower task called")
return &LowerOutput{
TransformedMessage: strings.ToLower(input.Message),
}, nil
},

  • Is it recommended to return any ?
  • Why is LowerOutput returned here instead of SimpleResult ?
  • Can the return value only be a pointer? Can it be a struct or a list?
  • Could you help add more examples to show V1 workflow control?

Thanks

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