I already use BotCity¶
If you already use BotCity and have automation processes in the BotCity Orchestrator, you just need to make a small change in the automation code to start reporting items.
Updating the code of an existing automation¶
To start reporting data, simply update the finish_task method call to include the values related to the processed items during the execution of the process.
maestro.finish_task(
task_id=execution.task_id,
status=AutomationTaskFinishStatus.SUCCESS,
message="Task Finished OK.",
total_items=100, # Total number of items processed
processed_items=90, # Number of items processed successfully
failed_items=10 # Number of items processed with failure
)
Maestro SDK Version
To ensure all parameters are recognized during the automation execution, remember to update the BotCity Maestro SDK dependency to the latest version:pip install --upgrade botcity-maestro-sdk
You also need to update the version in the robot's requirements.txt file.