Expand description
Task execution and management module
This module provides the core types for task execution, matching the CUE schema.
§Task API v2
Users annotate tasks with their type to unlock specific semantics:
Re-exports§
pub use backend::BackendFactory;pub use backend::HostBackend;pub use backend::TaskBackend;pub use backend::TaskExecutionContext;pub use backend::create_backend;pub use backend::create_backend_with_factory;pub use backend::should_use_dagger;pub use index::IndexedTask;pub use index::TaskIndex;pub use index::TaskPath;pub use index::WorkspaceTask;pub use output_refs::OutputRefResolver;pub use output_refs::TaskOutputField;pub use output_refs::TaskOutputRef;pub use output_refs::has_output_refs;pub use output_refs::process_output_refs;pub use process_registry::global_registry;pub use executor::*;pub use graph::*;
Modules§
- backend
- Task backend abstraction for different execution environments
- cache
- Task-level caching glue between the executor,
cuenv_cas, andcuenv_vcs. - captures
- Capture resolution for extracting regex matches from task output.
- executor
- Task executor for running tasks with environment support.
- graph
- Task graph builder using cuenv-task-graph.
- index
- output_
refs - Task output reference processing.
- process_
registry - Global process registry for tracking and terminating spawned child processes.
Structs§
- Dagger
Cache Mount - Cache volume mount configuration for Dagger
- Dagger
Secret - Secret configuration for Dagger containers
- Dagger
Task Config - Dagger-specific task configuration
- Mapping
- Mapping of external output to local workspace path
- Param
Def - Parameter definition for task arguments
- Project
Reference - Cross-project input declaration
- Resolved
Args - Resolved task arguments ready for interpolation
- Retry
Config - Retry configuration for failed tasks
- Shell
- Shell configuration for task execution (legacy, for backwards compatibility)
- Shell
Options - Shell options for bash-like shells
- Source
Location - Source location metadata from CUE evaluation
- Task
- A single executable task
- Task
Cache Policy - Cache policy controls for a single task.
- Task
Capture - Regex capture definition for extracting values from task output
- Task
Capture Ref - Reference to a captured value, resolved at runtime
- Task
Dependency - A task dependency - an embedded task reference with _name field
When tasks reference other tasks directly in CUE (e.g.,
dependsOn: [build]), the Go bridge injects the_namefield to identify the dependency. - Task
Group - A parallel task group - all children run concurrently
- Task
Output - Reference to another task’s outputs within the same project
- Task
Params - Task parameter definitions for CLI arguments
- Tasks
- Root tasks structure from CUE
Enums§
- Capture
Source - Source stream for regex capture extraction
- Input
- A single task input definition
- Param
Type - Parameter type for validation
- Script
Shell - Shell interpreter for script-based tasks
- Task
Cache Mode - Cache mode for task result caching.
- Task
Node - Union of all task types - explicit typing required in CUE
Type Aliases§
- Task
Definition Deprecated - Legacy alias for TaskNode
- Task
List Deprecated - Legacy alias for TaskList (now just Vec
)