func ProcessStuckProcessingMessages() {
	p, err := message.GetPath(message.SectionProcessing, "", "")
	if err != nil {
		return
	}

	// Check all files in the directory
	files, err := ioutil.ReadDir(p)
	if err != nil {
		return
	}

	for _, fileInfo := range files {
		// Not a dir, so not a message
		if !fileInfo.IsDir() {
			continue
		}

		// If the message is not in the scoreboard, we are not processing it at the moment, so we can move
		// it to the retry queue
		if !IsInScoreboard(message.SectionProcessing, fileInfo.Name()) {
			MoveToRetryQueue(fileInfo.Name())
		}
	}
}
// ProcessStuckProcessingMessages will process stuck message found in the processing queue.
ProcessStuckProcessingMessages will process stuck message found in the processing queue.
// ProcessStuckProcessingMessages will process stuck message found in the processing queue .
func ProcessStuckProcessingMessages() {
	p, err := message.GetPath(message.SectionProcessing, "", "")
	if err != nil {
		return
	}
	files, err := ioutil.ReadDir(p)
	if err != nil {
		return
	}
	for _, fileInfo := range files {
		if !fileInfo.IsDir() {
			continue
		}
		if !IsInScoreboard(message.SectionProcessing, fileInfo.Name()) {
			MoveToRetryQueue(fileInfo.Name())
		}
	}
}
func ProcessStuckProcessingMessages ( ) { p , err := message . GetPath ( message . SectionProcessing , " " , " " ) if err != nil { return } files , err := ioutil . ReadDir ( p ) if err != nil { return } for _ , fileInfo := range files { if ! fileInfo . IsDir ( ) { continue } if ! IsInScoreboard ( message . SectionProcessing , fileInfo . Name ( ) ) { MoveToRetryQueue ( fileInfo . Name ( ) ) } } }
ProcessStuckProcessingMessages will process stuck message found in the processing queue.
ProcessStuckProcessingMessages will process stuck message found in the processing queue .
// Check all files in the directory // Not a dir, so not a message // If the message is not in the scoreboard, we are not processing it at the moment, so we can move // it to the retry queue