Skip to content

Releases: botcity-dev/botcity-maestro-sdk-python

BotCity Maestro SDK Python - 0.5.1

21 Feb 16:43
c0b8961
Compare
Choose a tag to compare

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

20 Feb 16:55
da9b1aa
Compare
Choose a tag to compare

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 return None 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

05 Jan 02:18
5cc4520
Compare
Choose a tag to compare

Bug Fixes

  • Pass the timeout value downstream to the implementation. by @hhslepicka in #27

Documentation

Full Changelog: v0.4.1...v0.4.2

BotCity Maestro SDK Python - 0.4.1

17 Oct 21:53
ccd6fc1
Compare
Choose a tag to compare

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

10 Oct 01:05
92ae0b4
Compare
Choose a tag to compare

Enhancements

Bug Fixes

Tests

Documentation

New Contributors

Full Changelog: v0.3.4...v0.4.0

BotCity Maestro SDK Python - 0.3.4

04 Mar 00:09
5e5ecb9
Compare
Choose a tag to compare

Enhancements

  • Expose activity_label and killed for AutomationTask. by @hhslepicka in #17

Full Changelog: v0.3.3...v0.3.4

BotCity Maestro SDK Python - 0.3.3

14 Feb 21:33
17951f8
Compare
Choose a tag to compare

Enhancements

  • ENH: Expose task_name in Artifact and machine_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

27 Jan 20:01
c3effec
Compare
Choose a tag to compare

Bug Fixes

Full Changelog: v0.3.1...v0.3.2

BotCity Maestro SDK Python - 0.3.1

17 Dec 01:05
b87dead
Compare
Choose a tag to compare

Documentation

Full Changelog: v0.3.0...v0.3.1

BotCity Maestro SDK Python - 0.3.0

12 Dec 22:11
a6d4534
Compare
Choose a tag to compare

Enhancements

  • Support for Maestro v2 with backwards compatibility by @hhslepicka in #8

Tests

Full Changelog: v0.2.1...v0.3.0