File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed 
src/Illuminate/Queue/Jobs Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -204,13 +204,11 @@ public function fail($e = null)
204204            }
205205        }
206206
207-         $ failedJobConnectionName$ this container ['config ' ]['queue.failed.database ' ];
208- 
209207        // If the job times out and has an open database transaction on the same connection as 
210208        // the failed jobs table, we need to rollback that transaction to ensure the failed job 
211209        // can be properly logged. Otherwise, the current transaction will never commit. 
212210        if  ($ einstanceof  TimeoutExceededException &&
213-             !  is_null ($ failedJobConnectionName
211+             ($ failedJobConnectionName =  $ this -> container [ ' config ' ][ ' queue.failed.database ' ] ) &&
214212            $ this container ->bound ('db ' )) {
215213            $ this container ->make ('db ' )->connection ($ failedJobConnectionNamerollBack (toLevel: 0 );
216214        }
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments