mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Move status table to cron package (#7370)
This commit is contained in:
		
				
					committed by
					
						
						techknowlogick
					
				
			
			
				
	
			
			
			
						parent
						
							760c473896
						
					
				
				
					commit
					d2958d9f46
				
			@@ -458,11 +458,6 @@ func (deletedBranch *DeletedBranch) LoadUser() {
 | 
			
		||||
 | 
			
		||||
// RemoveOldDeletedBranches removes old deleted branches
 | 
			
		||||
func RemoveOldDeletedBranches() {
 | 
			
		||||
	if !taskStatusTable.StartIfNotRunning(`deleted_branches_cleanup`) {
 | 
			
		||||
		return
 | 
			
		||||
	}
 | 
			
		||||
	defer taskStatusTable.Stop(`deleted_branches_cleanup`)
 | 
			
		||||
 | 
			
		||||
	log.Trace("Doing: DeletedBranchesCleanup")
 | 
			
		||||
 | 
			
		||||
	deleteBefore := time.Now().Add(-setting.Cron.DeletedBranchesCleanup.OlderThan)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user