Skip to content

Commit

Permalink
Merge branch 'main' into 78-add-variable-conditional-relations-in-wor…
Browse files Browse the repository at this point in the history
…kflow-definition-including-smaller-and-greater-than
  • Loading branch information
lfse-slafleur committed Nov 28, 2024
2 parents 176e317 + cf5ad69 commit fb3f9b2
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 8 deletions.
4 changes: 2 additions & 2 deletions dev-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,11 @@ mypy-extensions==1.0.0
# via
# black
# mypy
omotes-sdk-protocol==0.1.6
omotes-sdk-protocol==0.1.13
# via
# -c requirements.txt
# omotes-sdk-python
omotes-sdk-python==3.2.4
omotes-sdk-python==3.2.5
# via
# -c requirements.txt
# orchestrator (pyproject.toml)
Expand Down
3 changes: 3 additions & 0 deletions integration_test/docker-compose.override.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ services:
RABBITMQ_VIRTUALHOST: omotes_celery
LOG_LEVEL: ${LOG_LEVEL}
WORKER_TYPE: NO_FAULT
depends_on:
rabbitmq:
condition: service_healthy

test_hard_crash_worker:
<<: *test_worker
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ dependencies = [
"sqlalchemy ~= 2.0.27",
"psycopg2-binary ~= 2.9.9",
"celery ~= 5.3.6",
"omotes-sdk-python ~= 3.2.4",
"omotes-sdk-python ~= 3.2.5",
"alembic ~= 1.13.1",
]

Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ markupsafe==2.1.5
# via mako
multidict==6.0.5
# via yarl
omotes-sdk-protocol==0.1.6
omotes-sdk-protocol==0.1.13
# via omotes-sdk-python
omotes-sdk-python==3.2.4
omotes-sdk-python==3.2.5
# via orchestrator (pyproject.toml)
ordered-set==4.1.0
# via pyecore
Expand Down
4 changes: 3 additions & 1 deletion src/omotes_orchestrator/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

from omotes_orchestrator.postgres_interface import PostgresInterface
from omotes_orchestrator.postgres_job_manager import PostgresJobManager
from omotes_sdk.internal.orchestrator_worker_events.messages.task_pb2 import (
from omotes_sdk_protocol.internal.task_pb2 import (
TaskResult,
TaskProgressUpdate,
)
Expand Down Expand Up @@ -477,6 +477,7 @@ def task_result_received(self, task_result: TaskResult) -> None:
result_type=JobResult.ResultType.SUCCEEDED,
output_esdl=task_result.output_esdl,
logs=task_result.logs,
esdl_messages=task_result.esdl_messages,
),
)
self._cleanup_job(job.id)
Expand All @@ -493,6 +494,7 @@ def task_result_received(self, task_result: TaskResult) -> None:
result_type=JobResult.ResultType.ERROR,
output_esdl=task_result.output_esdl,
logs=task_result.logs,
esdl_messages=task_result.esdl_messages,
),
)
self._cleanup_job(job.id)
Expand Down
2 changes: 1 addition & 1 deletion src/omotes_orchestrator/worker_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from typing import Callable

from omotes_sdk.internal.common.broker_interface import BrokerInterface, AMQPQueueType
from omotes_sdk.internal.orchestrator_worker_events.messages.task_pb2 import (
from omotes_sdk_protocol.internal.task_pb2 import (
TaskResult,
TaskProgressUpdate,
)
Expand Down
2 changes: 1 addition & 1 deletion unit_test/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

from omotes_sdk.job import Job
from omotes_sdk.workflow_type import WorkflowType
from omotes_sdk.internal.orchestrator_worker_events.messages.task_pb2 import TaskProgressUpdate
from omotes_sdk_protocol.internal.task_pb2 import TaskProgressUpdate
from omotes_sdk_protocol.job_pb2 import JobSubmission, JobProgressUpdate, JobStatusUpdate, JobResult
from google.protobuf import json_format
from google.protobuf.struct_pb2 import Struct
Expand Down

0 comments on commit fb3f9b2

Please sign in to comment.