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