let env var work on windows and fixing typing issue on python 3.9 w/ messaging stuff

This commit is contained in:
burnettk 2023-02-27 19:16:06 -05:00
parent 45b634a6df
commit 4c7bc90a8f
No known key found for this signature in database
3 changed files with 6 additions and 6 deletions

View File

@ -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

View File

@ -1,5 +1,3 @@
from __future__ import with_statement
import logging
from logging.config import fileConfig

View File

@ -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(