- 
          
 - 
                Notifications
    
You must be signed in to change notification settings  - Fork 60
 
Add API endpoint to retry all failed bg jobs #1396
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| 
           Nice! Could we also add an endpoint to retry all failed jobs, accessible only for superadmin? Perhaps   | 
    
          
 Yeah, good call! Added   | 
    
518874b    to
    7450c8e      
    Compare
  
    Fixes builds failing because of a webpack dependency not being installed when `--production` flag is used with yarn, e.g. here #1396
| 
           Added and tested a nightly test to ensure that non-superusers get a 403 when calling   | 
    
b42d52a    to
    b843930      
    Compare
  
    | 
           @ikreymer could use your eyes when you have a moment  | 
    
Fixes #1395 - Adds new `POST /orgs/<orgid>/jobs/retryFailed` API endpoint to retry all failed background jobs for a specific org. - Also adds `POST /orgs/all/jobs/retryFailed` for superadmin to retry all failed background jobs for all orgs
Fixes #1395 - Adds new `POST /orgs/<orgid>/jobs/retryFailed` API endpoint to retry all failed background jobs for a specific org. - Also adds `POST /orgs/all/jobs/retryFailed` for superadmin to retry all failed background jobs for all orgs
Fixes #1395
Adds new
POST /orgs/jobs/retryFailedAPI endpoint to retry all failed background jobs.Tested manually on local dev instance by setting invalid secret key for replica storage, starting a few crawls/uploads, waiting for replica jobs to fail, then calling new endpoint and verifying via
GET /orgs/jobsthat the failed jobs were restarted.