 SET
 	status = 'PROCESSING',
 	started_at = CURRENT_TIMESTAMP,
-	updated_at = CURRENT_TIMESTAMP
+	updated_at = CURRENT_TIMESTAMP,
+	lock_version = lock_version + 1
 WHERE
 	id = :id
 	AND

	status = 'SUCCESS',
	finished_at = CURRENT_TIMESTAMP,
	result = :result,
	updated_at = CURRENT_TIMESTAMP
WHERE
	id = :id
	AND

	status = 'ERROR',
	finished_at = CURRENT_TIMESTAMP,
	result = :result,
	updated_at = CURRENT_TIMESTAMP,
	lock_version = lock_version + 1
WHERE
	id = :id
	AND
