Merge pull request #42 from sartography/feature/call_activity_selection

Don't die trying to remove correlation properties
This commit is contained in:
Dan Funk 2022-11-16 14:58:49 -05:00 committed by GitHub
commit a360240aac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 4 deletions

View File

@ -29,7 +29,7 @@ class DataSetupService:
process_models = ProcessModelService().get_process_models()
for process_model in process_models:
current_app.logger.debug(f"Process Model: {process_model.display_name}")
SpecFileService.clear_caches()
try:
refs = SpecFileService.get_references_for_process(process_model)
for ref in refs:

View File

@ -253,9 +253,7 @@ class SpecFileService(FileSystemService):
def clear_caches() -> None:
"""Clear_caches."""
db.session.query(SpecReferenceCache).delete()
db.session.query(MessageCorrelationPropertyModel).delete()
db.session.query(MessageTriggerableProcessModel).delete()
db.session.query(MessageModel).delete()
# fixme: likely the other caches should be cleared as well, but we don't have a clean way to do so yet.
@staticmethod
def update_process_cache(ref: SpecReference) -> None: