Is there a way to get the timestamp of the last execution of a PutSQL processor via the REST-API? Does such a timestamp even exist or can I build one myself somehow?
Setup: I have Airflow to trigger my Nifi-ETL which ends with a couple of PutSQL processors - after those are done I need to execute something else in Airflow.
Idea: I want to trigger the first Nifi processor and then wait in Airflow until the last_execution_timestamp of the last PutSQL processor is updated.
Problem:
I tried accessing the attribute statsLastRefreshed, but it is not the last execution time, but the last time anything (users / api-requests) accessed the processor which led Nifi to refresh the processor.
s = processor["status"]["statsLastRefreshed"] # '13:13:26 CEST'
I can't find anything in the REST API documentation of Airflow.
The only other option I see is to make requests from Airflow to the datebase table of the last PutSQL processor to see if anything new happened there.
updateattributechanges the attribute of a flowfile, which I cannot query with the REST API - or am I misunderstanding you?