cleaned up logic for tracking job completion