let env var work on windows and fixing typing issue on python 3.9 w/ messaging stuff
This commit is contained in:
parent
45feb38168
commit
a1ec494ab3
|
@ -130,9 +130,9 @@ jobs:
|
||||||
run: poetry install
|
run: poetry install
|
||||||
- name: Setup sqlite
|
- name: Setup sqlite
|
||||||
if: matrix.database == 'sqlite'
|
if: matrix.database == 'sqlite'
|
||||||
run: |
|
env:
|
||||||
export SPIFFWORKFLOW_BACKEND_BPMN_SPEC_ABSOLUTE_DIR="${GITHUB_WORKSPACE}/sample-process-models"
|
SPIFFWORKFLOW_BACKEND_BPMN_SPEC_ABSOLUTE_DIR: "${GITHUB_WORKSPACE}/sample-process-models"
|
||||||
./bin/recreate_db clean rmall
|
run: ./bin/recreate_db clean rmall
|
||||||
|
|
||||||
- name: Setup Mysql
|
- name: Setup Mysql
|
||||||
uses: mirromutth/mysql-action@v1.1
|
uses: mirromutth/mysql-action@v1.1
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
from __future__ import with_statement
|
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
from logging.config import fileConfig
|
from logging.config import fileConfig
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
"""Message_service."""
|
"""Message_service."""
|
||||||
|
from typing import Optional
|
||||||
|
|
||||||
from spiffworkflow_backend.models.db import db
|
from spiffworkflow_backend.models.db import db
|
||||||
from spiffworkflow_backend.models.message_instance import MessageInstanceModel
|
from spiffworkflow_backend.models.message_instance import MessageInstanceModel
|
||||||
from spiffworkflow_backend.models.message_instance import MessageStatuses
|
from spiffworkflow_backend.models.message_instance import MessageStatuses
|
||||||
|
@ -47,7 +49,7 @@ class MessageService:
|
||||||
status=MessageStatuses.ready.value,
|
status=MessageStatuses.ready.value,
|
||||||
message_type=MessageTypes.receive.value,
|
message_type=MessageTypes.receive.value,
|
||||||
).all()
|
).all()
|
||||||
message_instance_receive: MessageInstanceModel | None = None
|
message_instance_receive: Optional[MessageInstanceModel] = None
|
||||||
try:
|
try:
|
||||||
for message_instance in available_receive_messages:
|
for message_instance in available_receive_messages:
|
||||||
if message_instance.correlates(
|
if message_instance.correlates(
|
||||||
|
|
Loading…
Reference in New Issue