dagu icon indicating copy to clipboard operation
dagu copied to clipboard

Enable Direct Execution of DAGs via Go Code

Open yottahmd opened this issue 1 year ago • 4 comments

Overview Implement the capability to execute DAGs directly from Go code.

Example Usage:

err := dagu.Start("someDAG", dagu.Params("FOO=BAR"))

Implementation Expose the Start function as follows:

package dagu

// Start starts DAG execution with specified options
function Start(dagName string, opts ...options)

Additional Context

  • https://github.com/dagu-dev/dagu/discussions/582#discussioncomment-9646677

yottahmd avatar Jun 03 '24 13:06 yottahmd

@yohamta Hi! Can i work on this issue ?!

liooooo29 avatar Aug 19 '24 12:08 liooooo29

@yohamta Hi! I want to know

  1. a dagu.go & option.go file in root package dagu ? image
  2. use client to run/retry dag image

liooooo29 avatar Aug 19 '24 13:08 liooooo29

Hi @halalala222, Thank you very much for the interest! That sounds great. Additionally we might also need to create the interface for dag.DAG and model.Status, etc. Sorry, this issue might still be in a half-baked state. I think it needs a bit more consideration.

yottahmd avatar Aug 20 '24 00:08 yottahmd

Ok! Thanks you ! I will try to work on other issue!!

liooooo29 avatar Aug 20 '24 01:08 liooooo29