Configure Timeout for SQL Server transaction

You can catch inner exception of an CreateJobFailedException instance, in this case it will be of type SqlException. Then, use its properties to decide what you should do - retry or throw.