Flushing transaction before each job is started