HERA-Team / librarian

The HERA Librarian.
BSD 2-Clause "Simplified" License
6 stars 11 forks source link

all nights staged if you try to stage a night that doesn't exist? #80

Open nicelmh opened 1 year ago

nicelmh commented 1 year ago

I entered the following command: librarian stage-files nrao /lustre/aoc/projects/hera/$(whoami)/demo '{ "name-matches": "zen.2459891%sum.autos%uvh5" }' I figured if this night didn't exist yet, that no staging would happen, I got a '0 instances' message but all available nights were instead staged. Every time I tried to delete the directory I was staging to part way through the process it would recreate the directory (but with no staging status file) and keep adding nights until all available nights were allowed to be staged. When I assume the staging was completed, there was a STAGING-ERRORS file that listed attempts to stage nights that didn't exist. At this point, I was able to delete the directory.

pkgw commented 1 year ago

Well, that shouldn't happen! I don't see an obvious way that an input search matching nothing would get turned into one that matches everything, but stranger things have happened. @plaplant is this something that you'll be able to investigate?