Documentation
¶
Index ¶
- func Run(ctx context.Context, name string, fn JobFunc) error
- type Job
- type JobFunc
- type Jobs
- func (p Jobs) Clone() Jobs
- func (p Jobs) Run(ctx context.Context) error
- func (p Jobs) RunSerial(ctx context.Context) error
- func (p Jobs) WithContextualTracer(contextualTracer bool) Jobs
- func (p Jobs) WithFailFast(failFast bool) Jobs
- func (p Jobs) WithInternal(internal bool) Jobs
- func (p Jobs) WithJob(name string, fn JobFunc, attributes ...attribute.KeyValue) Jobs
- func (p Jobs) WithLimit(limit int) Jobs
- func (p Jobs) WithReveal(reveal bool) Jobs
- func (p Jobs) WithRollupLogs(rollupLogs bool) Jobs
- func (p Jobs) WithRollupSpans(rollupSpans bool) Jobs
- func (p Jobs) WithTracing(tracing bool) Jobs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Job ¶
type Jobs ¶
type Jobs struct {
Jobs []Job
Limit *int
Internal bool
Reveal bool
// Use the "contextual tracer".
// If enabled, spans are created using the same tracer that created the current span.
// If disabled, spans are created using the global tracer for this process
// Typically, you need to enable this in multi-tenant systems with many client contexts,
// each with their own tracer (eg. inside the dagger engine)
//
ContextualTracer bool
// Roll up child logs into this span.
RollupLogs bool
// Roll up child spans into this span for aggregated progress display.
RollupSpans bool
Tracing bool // If set to false, tracing is completely disabled (no otel spans are created)
// If true, cancel remaining jobs when the first job returns an error.
FailFast bool
}
Jobs is a set of jobs to run together, built up with the With methods and executed by Run.
func (Jobs) WithContextualTracer ¶
func (Jobs) WithFailFast ¶
func (Jobs) WithInternal ¶
func (Jobs) WithReveal ¶
func (Jobs) WithRollupLogs ¶
func (Jobs) WithRollupSpans ¶
func (Jobs) WithTracing ¶
Click to show internal directories.
Click to hide internal directories.