mirror of https://github.com/peter4431/rq.git
				
				
				
			Solves issue 702
In order to solve issue 702 we have to check whether a work-horse terminated unexpectedly (by inspecting the exit code of the work-horse process). If it exited unexpectedly we check if the job has either been marked as finished, failed or other valid states. If it's not in any valid state we mark it as failed and move it to the failed queue. Since the process was terminated unexpectedly (think OOM) we do not have any exception context and we can't run any custom exception handlers. There is still a chance that the job will finish successfully but the work-horse process will be killed before the job is marked as finished and we will erroneously mark it as failed. The users should take care to write idempotent jobs.main
							parent
							
								
									93d286a6c7
								
							
						
					
					
						commit
						f9d5897922
					
				
					Loading…
					
					
				
		Reference in New Issue