[#8382] avoid a py3 ming error (on py2 I think flush silently misses the task until the next request flushes)
2 files changed