Skip to content

Commit

Permalink
Fixes #25736 - Generate new id for repetitions
Browse files Browse the repository at this point in the history
  • Loading branch information
adamruzicka committed Jan 25, 2019
1 parent bab7a88 commit 1948f6d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/lib/actions/recurring_action.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
require 'securerandom'

module Actions
module RecurringAction
# When included sets the base action to use the RecurringLogic middleware and configures
Expand All @@ -11,7 +13,7 @@ def self.included(base)
# or when it fails.
def trigger_repeat(execution_plan)
request_id = ::Logging.mdc['request']
::Logging.mdc['request'] = nil
::Logging.mdc['request'] = SecureRandom.uuid
if execution_plan.delay_record && recurring_logic_task_group
args = execution_plan.delay_record.args
logic = recurring_logic_task_group.recurring_logic
Expand Down

0 comments on commit 1948f6d

Please sign in to comment.