Skip to content

Commit 70b0617

Browse files
committed
Make sure we always have a copy of the domain model in the cache
1 parent 6ce6c84 commit 70b0617

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

.bumpversion.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 2.7.4
2+
current_version = 2.7.5
33
commit = False
44
tag = False
55
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(rc(?P<build>\d+))?

orchestrator/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
"""This is the orchestrator workflow engine."""
1515

16-
__version__ = "2.7.4"
16+
__version__ = "2.7.5"
1717

1818
from orchestrator.app import OrchestratorCore
1919
from orchestrator.settings import app_settings

orchestrator/workflows/utils.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
from orchestrator.workflows.steps import (
3333
cache_domain_models,
3434
refresh_subscription_search_index,
35-
remove_domain_model_from_cache,
3635
resync,
3736
set_status,
3837
store_process_subscription,
@@ -248,8 +247,8 @@ def _modify_workflow(f: Callable[[], StepList]) -> Workflow:
248247
steplist = (
249248
init
250249
>> store_process_subscription(Target.MODIFY)
251-
>> push_domain_models(remove_domain_model_from_cache)
252250
>> unsync
251+
>> push_domain_models(cache_domain_models)
253252
>> f()
254253
>> (additional_steps or StepList())
255254
>> resync
@@ -286,8 +285,8 @@ def _terminate_workflow(f: Callable[[], StepList]) -> Workflow:
286285
steplist = (
287286
init
288287
>> store_process_subscription(Target.TERMINATE)
289-
>> push_domain_models(remove_domain_model_from_cache)
290288
>> unsync
289+
>> push_domain_models(cache_domain_models)
291290
>> f()
292291
>> (additional_steps or StepList())
293292
>> set_status(SubscriptionLifecycle.TERMINATED)
@@ -320,8 +319,8 @@ def _validate_workflow(f: Callable[[], StepList]) -> Workflow:
320319
steplist = (
321320
init
322321
>> store_process_subscription(Target.SYSTEM)
323-
>> push_subscriptions(remove_domain_model_from_cache)
324322
>> unsync_unchecked
323+
>> push_subscriptions(cache_domain_models)
325324
>> f()
326325
>> resync
327326
>> push_subscriptions(cache_domain_models)

0 commit comments

Comments
 (0)