add default maxAttempt for reprocessing