job: fixes, add 'complete' function