Acryl Executor is a Python library used internally by Acryl Agents and the DataHub ecosystem to define and execute modular tasks. It provides core abstractions like `BaseTask` and `Executor` for building extensible task-based workflows. As a sub-package of the larger DataHub project, its releases are often coupled with DataHub's evolution, though its own versioning is independent. The current version is 0.3.10, and it follows an active release cadence driven by DataHub development.
pip install acryl-executorVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to define a custom task by inheriting from `BaseTask`, implement its `execute` method, and then run it using the `Executor`. It shows how to pass configuration to the task and retrieve results. The example also illustrates how to safely access environment variables for sensitive data.
Always pin to exact versions (e.g., `acryl-executor==0.3.10`) and review DataHub's main release notes for related changes when upgrading. Be prepared to adapt custom task implementations.
Thoroughly test custom tasks against new `acryl-executor` versions before deploying. Consult the DataHub GitHub repository commit history for `acryl-executor` changes if experiencing unexpected behavior after an upgrade.
For production scenarios requiring async or background execution, integrate `acryl-executor` within a suitable task runner like `datahub-actions` or a custom worker pool. Do not assume `Executor` handles concurrency internally.