Skip to content
Snippets Groups Projects

Issue #3501146: Installation fails if cron runs in parallel

1 file
+ 22
2
Compare changes
  • Side-by-side
  • Inline
@@ -12,7 +12,7 @@ dependencies:
@@ -12,7 +12,7 @@ dependencies:
id: init_search
id: init_search
modeller: bpmn_io
modeller: bpmn_io
label: 'Initialize search index'
label: 'Initialize search index'
version: 1.0.0
version: 1.0.1
weight: 0
weight: 0
events:
events:
Event_write_config:
Event_write_config:
@@ -45,12 +45,21 @@ conditions:
@@ -45,12 +45,21 @@ conditions:
operator: equal
operator: equal
type: value
type: value
negate: true
negate: true
 
Flow_install_time_is_set:
 
plugin: eca_scalar
 
configuration:
 
negate: false
 
case: false
 
left: '[install_time]'
 
right: '1'
 
operator: greaterthan
 
type: numeric
gateways:
gateways:
Gateway_and_1:
Gateway_and_1:
type: 0
type: 0
successors:
successors:
-
-
id: Activity_reset_last_cron_run
id: Activity_load_install_time
condition: Flow_is_new
condition: Flow_is_new
actions:
actions:
Activity_reset_last_cron_run:
Activity_reset_last_cron_run:
@@ -63,3 +72,14 @@ actions:
@@ -63,3 +72,14 @@ actions:
use_yaml: false
use_yaml: false
ifnotexists: false
ifnotexists: false
successors: { }
successors: { }
 
Activity_load_install_time:
 
plugin: eca_keyvaluestore_read
 
label: 'Load install time'
 
configuration:
 
collection: state
 
key: install_time
 
token_name: install_time
 
successors:
 
-
 
id: Activity_reset_last_cron_run
 
condition: Flow_install_time_is_set
Loading