Labtasker

Latest version: v0.2.4

Safety actively analyzes 722491 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 2

0.2.4

New Features

- **Added `labtasker-plugin-script-generate` for bundled plugins.**
- `labtasker loop` allowing shell execution of commands using `--cmd` option (equivalent to `shell=True`)
- Implemented piping support for `labtasker loop` command.
- Implemented piping support for `labtasker task delete` and `worker delete` commands.
- Added support for `extra-filter` query using `task_id`, `worker_id`, etc.
- Enhanced exception formatting for `labtasker loop` job subprocess failures, providing better interactive prompts (added exit choice, CTRL+C as the default option).
- Added `/` endpoint with a welcome message.
- Introduced a task update check to verify length and order constraints.

Bug Fixes

- Fixed `LsRequest` limit constraint (changed from `>= 0` to `> 0`).
- Resolved an issue with command-line quotation handling on Windows.

Refactoring and Optimization

- Changed a hard-coded ls response limit to a configurable option.
- Optimized import statements for improved code efficiency.

**Full Changelog**: https://github.com/fkcptlst/labtasker/compare/v0.2.3...v0.2.4

0.2.3

New Features
- **Simpler setup: integrated a modified MongoMock as an embedded DB so that Labtasker server can be used without docker compose in a pure Python fashion.**
- Added password validation for `labtasker init`.

Refactoring

- Refactored server entrypoint.

Documentation
- Updated docs about deploying a server.

Other Changes
- Changed default port to 9321 to reduce chance of collision.
- Added default choices for `labtasker init`.

**Full Changelog**: https://github.com/fkcptlst/labtasker/compare/v0.2.2...v0.2.3

0.2.2

New Features
- Added `labtasker init` command for step by step client setup.
- Added an time-limited interactive option to allow user restore task status upon failure.

Documentation Updates
- Added a comparison figure to the documentation.
- Updated `README.md`, FAQs, and other documentation files.

Bug Fixes
- Improved retry mechanism for `TransportError` and connection handling.
- Fixed issue when timed out workers report to a task that has been assigned to another worker.

Testing
- Added setup/teardown database fixtures to ensure a clean test environment.
- Improved test coverage with additional fixtures and handling for terminal width in client tests.

**Full Changelog**: https://github.com/fkcptlst/labtasker/compare/v0.2.1...v0.2.2

0.2.1

Bug Fix

* (fix) fixed ansi control char by xiongjyu in https://github.com/fkcptlst/labtasker/pull/17

**Full Changelog**: https://github.com/fkcptlst/labtasker/compare/v0.2.0...v0.2.1

0.2.0

New Features

- **Event System**: Implemented event system for Labtasker with server event manager, client listener and command
- **Query Transpiler**: Added Python expression to MongoDB query transpiler for intuitive filtering
- Enhanced task update flow, returning to edit mode on validation errors
- Added field validation for status updates
- Implemented Server-Sent Events (SSE) with configurable buffer size and ping interval
- Added support for KeyboardInterrupt handling
- Enhanced error reporting with detailed HTTP status errors
- Added internal loop error handler with exponential backoff

Bug Fixes

- Implemented retry mechanism for transient database transaction errors
- Fixed worker status reporting (changed "failed" to "crashed" for consistency with FSM)
- Fixed loop internal error handler issues
- Improved handling of invalid required fields
- Enhanced exception handling within async context managers
- Improved unicode formatting and rich console output
- Added compatibility improvements for TeeStream with io.TextIO

Documentation

- Added comprehensive documentation for the query transpiler
- Added documentation for the event system
- Demo on how to use event system to implement real time job failure notification system

Testing & Development

- Enhance docker-compose setup with separate init service.
- Integrated tox for end-to-end testing across multiple Python versions
- Added Docker compose tests in GitHub Actions
- Implemented full test coverage reporting (beyond just unit tests)
- Improved concurrency tests.
- Added `--manual-docker` option for manual pytest-docker control

Refactoring

- Changed default of `cascade_delete` to `True` to match server behavior
- Removed threadpool as it was deemed unnecessary
- Moved antlr generated code into dedicated directory
- Method rename: ls_worker -> ls_workers to stay consistent with ls_tasks

Other Changes

- Added license
- Improved GitHub Actions workflows

**Full Changelog**: https://github.com/fkcptlst/labtasker/compare/v0.1.3...v0.2.0

0.1.3

New Features

- **Custom Resolver via Annotation**: Labtasker now automatically parses the required fields from annotation or default kwarg value and inject them dynamically. (Like `def main(arg1: int = Required(), arg2: int = Required()):`). See more in the documentation.
- **Version Checker**: Added automatic version checking against PyPI that runs once per day
- Added `"*"` option for required_fields to allow arbitrary task arguments
- Added plugin install via `pip install labtasker[plugins]`
- Enhanced validation on args, metadata, and summary keys

Bug Fixes

- **Fixed Labtasker fetch_task required_fields bug (Breaking change: now only accepts list of str)**

Documentation

- Updated demo scripts
- Updated usage about custom resolver

Other Changes

- Restructured tests and added new tests for complex fetching behavior
- Moved plugins to a separate repository

**Full Changelog**: https://github.com/fkcptlst/labtasker/compare/v0.1.2...v0.1.3

Page 1 of 2

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.