Upon calling `invalidate_recordset` the current recordset present is flushed. That recordset can be active=True which override active=False set `_process_job()`. Flushing the recordset *before* calling `_process_job` makes sure that there is no dangling data to be flushed. closes odoo/odoo#159262 Signed-off-by: Julien Castiaux (juc) <juc@odoo.com>