Skip to content

Commit 187e5f1

Browse files
authored
Merge pull request #15 from itk-dev-rpa/release/v3
Release/v3
2 parents b9aed6d + ac59ef5 commit 187e5f1

File tree

6 files changed

+9
-7
lines changed

6 files changed

+9
-7
lines changed

.github/workflows/Linting.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Linting
22

3-
on: [push]
3+
on: [pull_request]
44

55
jobs:
66
build:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Robot-Framework V2
1+
# Robot-Framework V3
22

33
This repo is meant to be used as a template for robots made for [OpenOrchestrator](https://github.com/itk-dev-rpa/OpenOrchestrator).
44

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ classifiers = [
1717
]
1818
dependencies = [
1919
"OpenOrchestrator == 1.*",
20-
"Pillow == 9.5.0",
20+
"Pillow == 10.*",
2121
]
2222

2323
[project.optional-dependencies]
2424
dev = [
2525
"pylint",
2626
"flake8"
27-
]
27+
]

robot_framework/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
FAIL_ROBOT_ON_TOO_MANY_ERRORS = True
88

99
# Error screenshot config
10-
SMTP_SERVER = "smtp.aarhuskommune.local"
10+
SMTP_SERVER = "smtp.adm.aarhuskommune.dk"
1111
SMTP_PORT = 25
1212
SCREENSHOT_SENDER = "[email protected]"
1313

robot_framework/process.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
"""This module contains the main process of the robot."""
22

33
from 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.")

robot_framework/queue_framework.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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:

0 commit comments

Comments
 (0)