SocialFinanceDigitalLabs / liia-tools-pipeline

Tools to be used for 903
MIT License
1 stars 0 forks source link

clean file process to terminate if no files in a session can be matched against schema #56

Open MichaelHanksSF opened 3 weeks ago

MichaelHanksSF commented 3 weeks ago

Currently, we have a loop in pipeline.py where we loop over all files in the incoming folder and we:

In the process of doing this we write log messages to the system saying "enriching...blah blah blah", "degrading...blah blah blah".

However, if we have a situation where none of the files in incoming can be matched, we shouldn't continue the other steps in our loop - there's nothing to enrich, nothing to degrade - as the logs that are then written are misleading. They make it appear like steps are occurring that are not actually happening.

Can we close this loop earlier (figuratively, only potentially literally) so that if all files are duds, we don't send logs about enriching/degrading/outputting?

MichaelHanksSF commented 2 days ago

Conduct as part of GM pipelines