Pyzeebe

Latest version: v4.1.0

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

Scan your dependencies

Page 5 of 7

2.2.3

Changes

- Give threads names - 77
- Add `wait` parameter for `worker.stop` - 76

Deprecations

- Remove python 3.5 support

Dependencies

* Package dependencies:
- zeebe-grpc: 0.24.3.3 -> 0.25.1.0
- Removed grpcio and protobuf from dependencies as they're included in zeebe-grpc

* Development dependencies:
- pytest: 6.1.1 -> 6.2.1
- sphinx: 3.2.1 -> 3.4.2
- sphinx-rtd-theme: 0.5.0 -> 0.5.1
- coveralls: 2.1.2 -> 2.2.0
- importlib-metadata: 2.0.0 -> 3.3.0
- coverage: 5.3 -> 5.3.1

2.2.2

Changes

- Using a named logger. This means `pyzeebe` logging levels can now be set using:
python
logging.getLogger("pyzeebe").setLevel(logging.WARNING)

2.2.1

Changes

- Using [`zeebe-grpc`](https://gitlab.com/stephane.ludwig/zeebe_python_grpc) package
- Updated dependencies:
- `grpcio` from 1.31.0 to 1.32.0
- Updated development dependencies:
- `coverage` from 5.2.1 to 5.3
- `pytest` from 6.0.1 to 6.1.1
- `mypy` from 0.782 to 0.790
- `importlib-metadata` from 1.7.0 to 2.0.0

2.2.0

Using decorators instead of classes to create tasks
Changes

- Added ability to create task using decorator: `worker.task()`
- Added class called `ZeebeTaskRouter` which should help organize projects
- Renamed `TaskContext` to `Job`
- Merged `TaskStatusController` functionality into the new `Job` class
- Removed `Task` from standard imports because of decorator

API Changes

External updates:
- Renamed `TaskContext` to `Job`
- Merged `TaskStatusController` functionality into the new `Job` class
- Renamed `TaskStatus` to `JobStatus`
- Moved `stop_event` from `work` internally, so users don't have to import `threading.Event`
- Added `stop` function to `ZeebeWorker` which now uses the internal `threading.Event`
- Renamed `add_task` to `_add_task`
- Added class `ZeebeTaskRouter` which inherits from `ZeebeTaskHandler`. This class allows splitting tasks into multiple files (like fastapi's `APIRouter`)
- Added `include_router` to `ZeebeWorker` which allows a `ZeebeWorker` instance to absorb a `ZeebeTaskRouter`'s tasks
- Added `ExceptionHandler` for ease of use
- Added optional `message_id` parameter to `publish_message` in `ZeebeClient`

2.1.0

Added:
* Full task api to `worker.task` decorator:
* `variables_to_fetch` param - which variables to fetch from the workflow instance scope
* `timeout` param - how long until zeebe gives up on job
* `max_jobs_to_activate` param - max jobs the worker can perform simultaneously (per task)
* Automatic `variables_to_fetch`. (from `function.__code__.co_varnames`)
* Base exception class named: `PyZeebeException` from which all custom exceptions inherit

Fixed:
* `JobStatus` not exported - 43
* Exceptions not exported - 44

2.0.1

Fixed:
* `TaskDecorator` and `ZeebeTaskRouter` not being in exports

Page 5 of 7

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.