File tree Expand file tree Collapse file tree 6 files changed +9
-7
lines changed
Expand file tree Collapse file tree 6 files changed +9
-7
lines changed Original file line number Diff line number Diff line change 11name : Linting
22
3- on : [push ]
3+ on : [pull_request ]
44
55jobs :
66 build :
Original file line number Diff line number Diff line change 1- # Robot-Framework V2
1+ # Robot-Framework V3
22
33This repo is meant to be used as a template for robots made for [ OpenOrchestrator] ( https://github.com/itk-dev-rpa/OpenOrchestrator ) .
44
Original file line number Diff line number Diff line change @@ -17,11 +17,11 @@ classifiers = [
1717]
1818dependencies = [
1919 " OpenOrchestrator == 1.*" ,
20- " Pillow == 9.5.0 " ,
20+ " Pillow == 10.* " ,
2121]
2222
2323[project .optional-dependencies ]
2424dev = [
2525 " pylint" ,
2626 " flake8"
27- ]
27+ ]
Original file line number Diff line number Diff line change 77FAIL_ROBOT_ON_TOO_MANY_ERRORS = True
88
99# Error screenshot config
10- SMTP_SERVER = "smtp.aarhuskommune.local "
10+ SMTP_SERVER = "smtp.adm. aarhuskommune.dk "
1111SMTP_PORT = 25
1212SCREENSHOT_SENDER = "robot@friend.dk"
1313
Original file line number Diff line number Diff line change 11"""This module contains the main process of the robot."""
22
33from OpenOrchestrator .orchestrator_connection .connection import OrchestratorConnection
4+ from OpenOrchestrator .database .queues import QueueElement
45
56
6- def process (orchestrator_connection : OrchestratorConnection ) -> None :
7+ # pylint: disable-next=unused-argument
8+ def process (orchestrator_connection : OrchestratorConnection , queue_element : QueueElement | None = None ) -> None :
79 """Do the primary process of the robot."""
810 orchestrator_connection .log_trace ("Running process." )
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ def main():
4141 break # Break queue loop
4242
4343 try :
44- process .process (orchestrator_connection )
44+ process .process (orchestrator_connection , queue_element )
4545 orchestrator_connection .set_queue_element_status (queue_element .id , QueueStatus .DONE )
4646
4747 except BusinessError as error :
You can’t perform that action at this time.
0 commit comments