Problem/Motivation

Consider a radioactivity field that configured for decay. When an incident has been fired, the existing energy does not decay. Decay is only processed when no incidents are available.

Steps to reproduce

  1. Create an overview of RA energy.
  2. Create a node with a decay radioactivity field (use granularity of 1 for debugging)
  3. Visit the node a few times
  4. Run cron regularly and watch the decay over time
  5. Visit the node once more
  6. Notice the absence of decay in the cron run
  7. immediately following the previous step
  8. Notice the decay in subsequent cron runs

Proposed resolution

The problem is caused by the order in which the cron tasks are processed. Decay should be processed before incidents.
The problem is present in both 8.x-3.x and 4.0.x versions.

CommentFileSizeAuthor
#2 radioactivity-no-decay-3264937-2.patch666 bytessutharsan

Comments

Sutharsan created an issue. See original summary.

sutharsan’s picture

Status: Active » Needs review
StatusFileSize
new666 bytes

  • Sutharsan committed 3047e5a on 4.0.x
    Issue #3264937 by Sutharsan: Decay not correct when incident occurs
    

  • Sutharsan committed ae7da4c on 8.x-3.x
    Issue #3264937 by Sutharsan: Decay not correct when incident occurs
    
sutharsan’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.