# Overide plugin priority : Custome priority

**URL:** https://discuss.konghq.com/t/overide-plugin-priority-custome-priority/2021
**Category:** General
**Created:** [October 4, 2018, 2:14am UTC](https://discuss.konghq.com/t/overide-plugin-priority-custome-priority/2021 "2018-10-04T02:14:08Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![sharmmoh1983](https://avatars.discourse-cdn.com/v4/letter/s/e9c0ed/32.png) [@sharmmoh1983](https://discuss.konghq.com/u/sharmmoh1983)
#### Post date: [October 4, 2018, 2:14am UTC](https://discuss.konghq.com/t/overide-plugin-priority-custome-priority/2021/1 "2018-10-04T02:14:08Z")

</div>

Hi

I am using two built in plugin which are as follows:

JWT  
AWS Lambda

According to documentation ,JWT will be invoked first and then AWS lambda. Is there any way to have control of priority in which built in plugins execute while enabling the plugins

---

<div class="post-metadata">

### Author: ![jeremyjpj0916](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/jeremyjpj0916/32/1388_2.png) [@jeremyjpj0916](https://discuss.konghq.com/u/jeremyjpj0916)
#### Post date: [October 4, 2018, 2:55am UTC](https://discuss.konghq.com/t/overide-plugin-priority-custome-priority/2021/2 "2018-10-04T02:55:20Z")

</div>

Its actually hardcoded into Kong plugins:

> **[Open-Source API Management and Microservice Management](https://docs.konghq.com/0.14.x/plugin-development/custom-logic/#plugins-execution-order)**
>
> Secure, Manage & Extend your APIs or Microservices with plugins for authentication, logging, rate-limiting, transformations and more.

Anywhere you look in the handler.lua files a

```auto
CustomHandler.PRIORITY = 10 .. 9 .... 8 ... etc. 

```

Would be neat in the future to have flexibility around all plugins being able to execute dynamically set with a config option(maybe with a default embedded as well). Right now to achieve changing priority you would need to fork the existing plugin and change the numeric yourself and install it as a custom plugin.

---

<div class="post-metadata">

### Author: ![sharmmoh1983](https://avatars.discourse-cdn.com/v4/letter/s/e9c0ed/32.png) [@sharmmoh1983](https://discuss.konghq.com/u/sharmmoh1983)
#### Post date: [October 4, 2018, 3:18am UTC](https://discuss.konghq.com/t/overide-plugin-priority-custome-priority/2021/3 "2018-10-04T03:18:00Z")

</div>

Thanks Jeremy…Is Kong planning to add this feature in next release?

---

<div class="post-metadata">

### Author: ![jeremyjpj0916](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/jeremyjpj0916/32/1388_2.png) [@jeremyjpj0916](https://discuss.konghq.com/u/jeremyjpj0916)
#### Post date: [October 4, 2018, 4:32am UTC](https://discuss.konghq.com/t/overide-plugin-priority-custome-priority/2021/4 "2018-10-04T04:32:24Z")

</div>

Not that I know of, sorry. I bet they may accept an elegant PR for such functionality though 🙂 !
