Skip to content

Latest commit

 

History

History
31 lines (26 loc) · 781 Bytes

option.md

File metadata and controls

31 lines (26 loc) · 781 Bytes

##Execution Option

Next: Report

You can assign an option for a kind of tasks:

app.Register("myTask", func() {})

myOption := dingo.DefaultOption()
app.SetOption("myTask", myOption)

Or assign an option to a specific task:

myOption := dingo.DefaultOption()
app.Call("myTask", myOption, ...arguments)

These are options that currently available:

###Ignore Report You don't want to receive any report from this task.

dingo.DefaultConfig().IgnoreReport(true) // default is false

###Monitor Progress You would like to receive more detailed reports from this tasks.

  • Sent: the task is received by Worker.
  • Progress: the worker function is about to be invoked.
dingo.DefaultConfig().MonitorProgress(true) // default is false