MetPX / sarracenia

https://MetPX.github.io/sarracenia
GNU General Public License v2.0
45 stars 22 forks source link

post non files (to make trivial message passing apps.) #543

Open petersilva opened 2 years ago

petersilva commented 2 years ago

Some people just want to do some message passing (based on user request from ECCC)

petersilva commented 1 year ago

This would be easily implemented as part of #558 "justMessage":"" tag could be added to fileOp. need to figure out option parsing though... have a similar problem if someone wants to post an "mkdir", or an "rmdir"... no way to specify via options currently.

petersilva commented 1 year ago

examples of fileOp:


"fileOp": { "directory":"" } 
"fileOp": { "remove":"", "directory":"" }
"fileOp": { "link": "destination_of_symlink" }
"fileOp": { "rename": "oldname" }

"fileOp": { "justMessage":"" }   -- not represent any file...

--header foo=bar ... will add a field { "foo":"bar" } in the message.

in python, just assign msg['foo'] = 'bar' ... in your message... (say inside a callback.) and it will be propagated.

the "justMessage" field will make all sarracenia components act like a "shovel" not downloading or sending any messages. but still apply caching/duplicate suppression ?