project8 / hornet

Hornet is a nearline data processor for the Project 8 experiment
Other
0 stars 0 forks source link

What is the logic used to apply types within classifier #21

Open laroque opened 9 years ago

laroque commented 9 years ago

My "least surprise" order of expectations is as follows:

  1. apply the logic based on the first match in the types list, order being that of the config file
  2. apply logic based on all types that it matches
  3. apply the logic based on the first match of its internal list which may or may not match the config

    Use case

I'd like to have hornet process all egg files produced during some data taking. The "correct" file format should match r"runid[0-9]{9}_[0-9]{9}.egg" and this is enforced for data taken "correctly" (ie using running dripline services). If a user takes data incorrectly (maybe doing a test by hand) and a file named pre_data_testing_0001.egg were to show up, perhaps I'd like the following to happen:

  1. hornet sends an alert out over AMQP (and/or to slack) that someone has created an improperly named egg file
  2. do nearline analysis on the file and move it to warm storage
  3. possibly don't move it to cold storage because it is ill defined

    More general question as a result of thinking through this while typing it out...

This is becoming a ramble, but I guess I should also ask exactly how to do configuration in a truly consistent way. This should probably be broken down into dedicated feature-request issues once it is more flushed out. I'm a bit confused by: