sul-dlss / common-accessioning

Suite of robots that handle the tasks of accessioning digital objects
Other
2 stars 1 forks source link

Cleanup resultXML files after processing #1306

Closed peetucket closed 3 months ago

peetucket commented 3 months ago

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.