Skip to content

Resolve "Update Duo Chat's Limit On Failed Job Retry Attempts"

What does this MR do and why?

The retry count for Llm::CompletionWorker has been decreased to 3. This means that if the worker fails to complete a job, it will be retried up to 3 times before being considered a failure. This change is likely to improve the reliability of the worker and ensure that jobs are completed successfully.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

How to set up and validate locally

  1. Run git checkout 469376-update-duo-chat-s-limit-on-failed-job-retry-attempts
  2. Start GDK gdk start
  3. Stop the AI Gateway gdk stop gitlab-ai-gateway
    • This will allow you to check the retry attempts
  4. Open your GDK instance and the sidekiq http://localhost:3000/admin/sidekiq/retries
  5. Ask Duo Chat a question
  6. Go to your Sidekiq page and verify it will retry the job that is failing from Duo Chat three times and no more. (This will take around 2 minutes I believe)

Related to #469376 (closed)

Edited by Dillon Wheeler

Merge request reports

Loading