Skip to content
  • Daniel Morton's avatar
    94ccd541
    `retry_on` parameter `attempts` now accepts `:unlimited` (#41761) · 94ccd541
    Daniel Morton authored
    In some applications, some classes of errors may be raised during the
    execution of a job which the developer would want to retry forever.
    
    These classes of errors would most likely be infrastructure problems that
    the developer knows will be resolved eventually but may take a variable
    amount of time or errors where due to application business logic, there
    could be something temporarily blocking the job from executing, like a
    resource that is needed for the job being locked for a lengthy amount of
    time.
    
    While an arbitrarily large number of attempts could previously be passed,
    this is inexpressive as sometimes the developer may just need the job to
    continue to be retried until it eventually succeeds. Without this,
    developers would need to include additional code to handle the situation
    where the job eventually fails its attempts limit and has to be re-enqueued
    manually.
    
    As with many things this should be used with caution and only for errors
    that the developer knows will definitely eventually be resolved, allowing
    the job to continue.
    
    [Daniel Morton + Rafael Mendonça França]
    94ccd541
    `retry_on` parameter `attempts` now accepts `:unlimited` (#41761)
    Daniel Morton authored
    In some applications, some classes of errors may be raised during the
    execution of a job which the developer would want to retry forever.
    
    These classes of errors would most likely be infrastructure problems that
    the developer knows will be resolved eventually but may take a variable
    amount of time or errors where due to application business logic, there
    could be something temporarily blocking the job from executing, like a
    resource that is needed for the job being locked for a lengthy amount of
    time.
    
    While an arbitrarily large number of attempts could previously be passed,
    this is inexpressive as sometimes the developer may just need the job to
    continue to be retried until it eventually succeeds. Without this,
    developers would need to include additional code to handle the situation
    where the job eventually fails its attempts limit and has to be re-enqueued
    manually.
    
    As with many things this should be used with caution and only for errors
    that the developer knows will definitely eventually be resolved, allowing
    the job to continue.
    
    [Daniel Morton + Rafael Mendonça França]
Loading