Post hook ingestion is a feature where you can provide bash scripts to be run after the ingestion job completes. The post hook runs in the same job as the ingestion job.
The script runs after each table ingestion (full load, incremental load, and merge). The script is invoked when the job is successful and also when the job fails. The script should be idempotent, that is, the action performed should not be affected by the number of times the script is called, as the script is called after each ingestion job.
Please follow the below document to configure the post-hook script
The sample post-ingestion hook script is attached in this article for your reference.