Revert: Issue #2235 was fixed. Flush periodic task. (4099a730f813670577635bcb215ceef09af025ed)