Re: Progamatically clearing out flowfiles

2018-06-26 Thread Daniel Chaffelson
I needed a method of manually clearing down PGs being used for automated testing of flows, so I created a purge command in the Python client. http://nipyapi.readthedocs.io/en/latest/_modules/nipyapi/canvas.html#purge_process_group There's also an option to delete a process group with purge and a

Re: Progamatically clearing out flowfiles

2018-06-20 Thread Brandon DeVries
Mike, If you want to remove all FlowFiles from the flow, you could use the REST api to get the list of all connections (/controller/process-groups/root/status?recursive=true), and then issue the command to "empty queue" (/flowfile-queues/{id}/drop-requests) on each of them. Brandon On Tue,

Re: Progamatically clearing out flowfiles

2018-06-19 Thread Andy LoPresto
Mike, I don’t believe there are any APIs to perform that action. You could likely achieve it by using an ExecuteStreamCommand processor and invoking “rm -rf /path/to/flowfile_repository” but I’m not sure if that would cause an issue given the triggering flowfile being executed at the time. And

Progamatically clearing out flowfiles

2018-06-19 Thread Mike Thomsen
Are there any APIs that could be leveraged internally be a "reset" processor to tell the flow file repository to purge everything? Thanks, Mike