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 process_registry::global_registry;pub use executor::*;pub use graph::*;
Modules§
- backend
- Task backend abstraction for different execution environments
- executor
- Task executor for running tasks with environment support.
- graph
- Task graph builder using cuenv-task-graph.
- index
- io
- 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
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§
- Input
- A single task input definition
- Param
Type - Parameter type for validation
- Script
Shell - Shell interpreter for script-based tasks
- 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
)