docs.rs failed to build tasker-client-0.1.2
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
tasker-client
Transport-agnostic API client library for the Tasker workflow orchestration system. Provides REST and gRPC clients for programmatic interaction with Tasker orchestration and worker APIs.
Overview
tasker-client is the primary interface for external systems to interact with Tasker. It handles HTTP/gRPC communication, authentication, and provides strongly-typed interfaces for all API endpoints. The CLI tool (tasker-ctl) is built on top of this library.
Features
- Orchestration client — create tasks, query status, view analytics, manage DLQ entries
- Worker client — health checks, status monitoring, worker management
- Transport abstraction — unified traits for REST and gRPC with transparent switching
- Authentication — API key, JWT token, or no-auth modes
- Profile-based config — TOML configuration with named profiles (like nextest)
- Error categorization — structured errors: network, auth, server, validation
Quick Start
use ;
async
gRPC Transport
use ;
let config = ClientConfig ;
// Same API, different transport
let client = new?;
let health = client.health_check.await?;
Configuration
Environment Variables
| Variable | Description |
|---|---|
ORCHESTRATION_URL |
Base URL for orchestration service |
ORCHESTRATION_API_KEY |
API key for authentication |
WORKER_URL |
Base URL for worker service |
CLIENT_TIMEOUT_MS |
Request timeout in milliseconds |
TASKER_CLIENT_PROFILE |
Named profile from config file |
Profile Configuration
Create .config/tasker-client.toml in your project:
[]
= "rest"
= "http://localhost:8080"
[]
= "grpc"
= "https://staging.example.com:9190"
= "your-staging-key"
Use with --profile staging or TASKER_CLIENT_PROFILE=staging.
Features
| Feature | Description | Default |
|---|---|---|
grpc |
gRPC transport via Tonic | Yes |
License
MIT License — see LICENSE for details.
Contributing
See the Tasker Core contributing guide and Code of Conduct.