Skip to content

Commit

Permalink
Flushing tasks deletion (#7547)
Browse files Browse the repository at this point in the history
  • Loading branch information
siyamandayubi authored and sebastienros committed Feb 2, 2017
1 parent 8b343f3 commit 5051283
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ public void Sweep() {
// removing record first helps avoid concurrent execution
_repository.Delete(taskRecord);

// persisting the change so it takes effect in the other async operations
_repository.Flush();

var context = new ScheduledTaskContext {
Task = new Task(_contentManager, taskRecord)
};
Expand Down

0 comments on commit 5051283

Please sign in to comment.