How to stop scheduled logstash config and close the logstash pipeline?

I have configured a logstash file in to fetch data from sql and dump it to elasticsearch. I have scheduled this process for every 5 minutes. Now I want to stop this process. Please help how can I stop that process and close the pipeline ?

If you're using the the jdbc input, just set the schedule in the plugin itself.

If you're not using the jdbc input, please elaborate on what you are doing. Which input plugin and how are you starting Logstash?