ABBYY places result XML files in RESULTXML, which are then processed by the file watcher. But the files are never removed, so if we run the abbyy_catchup script, it will keep re-processing them, which is not correct
We should cleanup the RESULTXML file as soon as it is processed in the FileWatcher class, in the process_success and process_failure methods so it won't be processed by mistake again later.
ABBYY places result XML files in RESULTXML, which are then processed by the file watcher. But the files are never removed, so if we run the
abbyy_catchup
script, it will keep re-processing them, which is not correctWe should cleanup the RESULTXML file as soon as it is processed in the
FileWatcher
class, in theprocess_success
andprocess_failure
methods so it won't be processed by mistake again later.