Skip to content

Commit 5fc0d63

Browse files
fix: fix bad formatted messages in orchestrator (#863)
1 parent f81f965 commit 5fc0d63

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/aap_eda/tasks/orchestrator.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,11 @@ def dispatch(
159159
job_id = _manage_process_job_id(process_parent_type, process_parent_id)
160160
LOGGER.info(
161161
f"Dispatching request type {request_type} for {process_parent_type} "
162-
"{process_parent_id}",
162+
f"{process_parent_id}",
163163
)
164+
# TODO: add "monitor" type to ActivationRequestQueue
165+
if request_type is None:
166+
request_type = "Monitor"
164167

165168
# new processes
166169
if request_type in [
@@ -195,7 +198,7 @@ def dispatch(
195198
LOGGER.info(
196199
f"Scheduling {process_parent_type} {process_parent_id} "
197200
f"to the least busy queue; its associated queue "
198-
"'{queue_name}' is from previous configuation settings.",
201+
f"'{queue_name}' is from previous configuation settings.",
199202
)
200203
queue_name = get_least_busy_queue_name()
201204
elif not check_rulebook_queue_health(queue_name):

0 commit comments

Comments
 (0)