Releases: botcity-dev/botcity-maestro-sdk-python
Releases · botcity-dev/botcity-maestro-sdk-python
BotCity Maestro SDK Python - 0.5.1
Bug Fixes
- Invoke define_implementation during from_sys_args by @hhslepicka in #34
Full Changelog: v0.5.0...v0.5.1
BotCity Maestro SDK Python - 0.5.0
Important
Release removed from PyPI due to issue fixed in 0.5.1
Enhancements
- You can now specify the total number of items and the number of items processed with success and failure by each of your tasks when reporting its finish status using the
maestro.finish_task
method. by @hhslepicka in #32 and #33.
This enhancement is strongly recommended as it will be a key aspect of the future features of the BotCity Orchestrator related to ROI, savings, and FTEs.
Here is how you can modify your code to report your items:
# Import for integration with BotCity Maestro SDK
from botcity.maestro import *
def main():
...
maestro.finish_task(
task_id=execution.id,
status=AutomationTaskFinishStatus.SUCCESS,
message="Task Finished with Success.",
total_items=10,
processed_items=6,
failed_items=4
)
...
- Added a new option
MOCK_OBJECT_WHEN_DISCONNECTED
to return instances of the expected object when running the code disconnected from the orchestrator by @hhslepicka in #31
Before this option, the SDK would returnNone
or a stub function which would make code like the example below crash.
# Import for integration with BotCity Maestro SDK
from botcity.maestro import *
# Disable errors if we are not connected to Maestro
BotMaestroSDK.RAISE_NOT_CONNECTED = False
# Opt-in to receive mock objects when not connected to Maestro
BotMaestroSDK.MOCK_OBJECT_WHEN_DISCONNECTED = True
def main():
maestro = BotMaestroSDK()
maestro.from_sys_args()
task = maestro.get_task("12345")
print("Maestro Task: ", task)
print("Task Interrupted: ", task.is_interrupted())
if __name__ == '__main__':
main()
## This will generate the following output:
# Maestro Task: AutomationTask(id=0, state=<AutomationTaskState.START: 'START'>, parameters=None, input_file=None, activity_id=0, activity_label=None, agent_id=0, user_creation_id=0, user_creation_name=None, org_creation_id=0, date_creation=None, date_last_modified=None, finish_status=<AutomationTaskFinishStatus.FAILED: 'FAILED'>, finish_message=None, test=False, interrupted=False, killed=False, machine_id=None)
# Task Interrupted: False
Bug Fixes
- Addressed an issue where the
VERIFY_SSL_CERT
flag was not being used when making requests by @hhslepicka in #30 - Addressed an issue where the
timeout
value was not properly propagated when configured
Deprecations
- Removed compatibility layer with BotCity Orchestrator API v1 which is no longer available in any of our servers by @hhslepicka in #28
CI
- Updated actions versions and add needs authorize to tests. by @hhslepicka in #29
Full Changelog: v0.4.2...v0.5.0
BotCity Maestro SDK Python - 0.4.2
Bug Fixes
- Pass the timeout value downstream to the implementation. by @hhslepicka in #27
Documentation
- Update screenshots links in README by @joao-voltarelli in #26
Full Changelog: v0.4.1...v0.4.2
BotCity Maestro SDK Python - 0.4.1
Bug Fixes
- Remove duplicated call to update_from_json from DataPoolEntry. by @hhslepicka in #25
Full Changelog: v0.4.0...v0.4.1
BotCity Maestro SDK Python - 0.4.0
Enhancements
- Add support for
Datapool
feature by @kayqueGovetri in #21 and @hhslepicka in #24 - Expose new parameters at
create_task
by @kayqueGovetri in #19
Bug Fixes
- Verify minimum execute date is not
None
increate_task
by @kayqueGovetri in #23
Tests
- Implement new arguments in conftest fixture
create_task
by @kayqueGovetri in #22
Documentation
- Updating screenshots and links in README by @joao-voltarelli in #20
New Contributors
- @joao-voltarelli made their first contribution in #20
Full Changelog: v0.3.4...v0.4.0
BotCity Maestro SDK Python - 0.3.4
Enhancements
- Expose
activity_label
andkilled
for AutomationTask. by @hhslepicka in #17
Full Changelog: v0.3.3...v0.3.4
BotCity Maestro SDK Python - 0.3.3
Enhancements
- ENH: Expose
task_name
in Artifact andmachine_id
in Task models by @kayqueGovetri in #14
Bug Fixes
- FIX: Don't break if
RAISE_NOT_CONNECTED
is False when determining the API. by @hhslepicka in #16
Full Changelog: v0.3.2...v0.3.3
BotCity Maestro SDK Python - 0.3.2
BotCity Maestro SDK Python - 0.3.1
Documentation
- Fix docstrings for error method. by @hhslepicka in #12
Full Changelog: v0.3.0...v0.3.1
BotCity Maestro SDK Python - 0.3.0
Enhancements
- Support for Maestro v2 with backwards compatibility by @hhslepicka in #8
Tests
- Implement tests in the project by @kayqueGovetri in #11
Full Changelog: v0.2.1...v0.3.0