# How to stop Deployed Flowable Apps from picking jobs

**URL:** <https://forum.flowable.org/t/how-to-stop-deployed-flowable-apps-from-picking-jobs/1700>\
**Category:** Uncategorized\
**Created:** [February 28, 2018, 11:29am UTC](https://forum.flowable.org/t/how-to-stop-deployed-flowable-apps-from-picking-jobs/1700 "2018-02-28T11:29:32Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![arpit.agrawal](https://avatars.discourse-cdn.com/v4/letter/a/c5a1d2/32.png) [@arpit.agrawal](https://forum.flowable.org/u/arpit.agrawal)\
**Post date:** [February 28, 2018, 11:29am UTC](https://forum.flowable.org/t/how-to-stop-deployed-flowable-apps-from-picking-jobs/1700/1 "2018-02-28T11:29:32Z")

</div>

Hi,

I have a process with timer start event having expression “R10/PT5M”. This process contains a Service task which uses expression “${UtilityServiceTasks.sendDropLinkMails(execution)}” which is defined in my spring boot application. Now this process is deployed using flowable modeler app. Now my spring boot is also running on my local machine connected to same database. Now when the timer expired, instead of spring boot process engine picking up this job, this job is picked up by apps deployed on tomcat and so it throws

> " Unknown method used in expression: ${UtilityServiceTasks.sendDropLinkMails(execution)}"

How can i make sure that job is picked up by the spring boot process engine and not by deployed app so that i dont get this error?

Thank You,  
Arpit Agrawal

---

<div class="post-metadata">

**Author:** ![joram](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/joram/32/26_2.png) [@joram](https://forum.flowable.org/u/joram)\
**Post date:** [February 28, 2018, 1:00pm UTC](https://forum.flowable.org/t/how-to-stop-deployed-flowable-apps-from-picking-jobs/1700/2 "2018-02-28T13:00:56Z")

</div>

Jobs will be picked up wherever you’ve got the AsyncExcutor running. So in this case, it looks like both your Spring Boot app and the Flowable task app have the async executor running. You’d have to disable the executor on the task app if you don’t want it to pick up jobs.

---

<div class="post-metadata">

**Author:** ![arpit.agrawal](https://avatars.discourse-cdn.com/v4/letter/a/c5a1d2/32.png) [@arpit.agrawal](https://forum.flowable.org/u/arpit.agrawal)\
**Post date:** [February 28, 2018, 1:03pm UTC](https://forum.flowable.org/t/how-to-stop-deployed-flowable-apps-from-picking-jobs/1700/3 "2018-02-28T13:03:02Z")

</div>

Hi joram,

Can you tell me, how i can do that? Is their a property in flowable-app.properties which i can change or do i need to add that property to flowable-app.properties?

Thank You,  
Arpit Agrawal

---

<div class="post-metadata">

**Author:** ![arpit.agrawal](https://avatars.discourse-cdn.com/v4/letter/a/c5a1d2/32.png) [@arpit.agrawal](https://forum.flowable.org/u/arpit.agrawal)\
**Post date:** [February 28, 2018, 1:51pm UTC](https://forum.flowable.org/t/how-to-stop-deployed-flowable-apps-from-picking-jobs/1700/4 "2018-02-28T13:51:27Z")

</div>

Hi Joram,

> <https://github.com/flowable/flowable-engine/blob/b92d3fecf99c6f5e9f64c5a1154dec3a6d8e6ef7/modules/flowable-app-rest/src/main/java/org/flowable/rest/conf/FlowableEngineConfiguration.java#L102>

Is this the property i need to set to false?

Thank You,  
Arpit

---

<div class="post-metadata">

**Author:** ![arpit.agrawal](https://avatars.discourse-cdn.com/v4/letter/a/c5a1d2/32.png) [@arpit.agrawal](https://forum.flowable.org/u/arpit.agrawal)\
**Post date:** [February 28, 2018, 1:58pm UTC](https://forum.flowable.org/t/how-to-stop-deployed-flowable-apps-from-picking-jobs/1700/5 "2018-02-28T13:58:54Z")

</div>

Hi Joram,

> <https://github.com/flowable/flowable-engine/blob/c2888e76f0a22f06ec150d713c1986eaa727fcb8/modules/flowable-ui-task/flowable-ui-task-conf/src/main/java/org/flowable/app/conf/FlowableEngineConfiguration.java#L140>

Here, in flowable-ui-task configuration, instead of using environment properties, it is using true directly. How can i change this without needing to change the code?

Thank You,  
Arpit Agrawal

---

<div class="post-metadata">

**Author:** ![zoheb](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/zoheb/32/337_2.png) [@zoheb](https://forum.flowable.org/u/zoheb)\
**Post date:** [March 1, 2018, 2:48pm UTC](https://forum.flowable.org/t/how-to-stop-deployed-flowable-apps-from-picking-jobs/1700/6 "2018-03-01T14:48:09Z")

</div>

Had similar issue and I was able to turn off the asyncExecutor by editing/creating a ./WEB-INF/classes/engine.properties in the flowable-rest app with the below properties:

`engine.process.asyncexecutor.activate=false`

If you search for the above property you should fine some notes/documentation on it.

Hope this helps

---

<div class="post-metadata">

**Author:** ![arpit.agrawal](https://avatars.discourse-cdn.com/v4/letter/a/c5a1d2/32.png) [@arpit.agrawal](https://forum.flowable.org/u/arpit.agrawal)\
**Post date:** [March 1, 2018, 4:30pm UTC](https://forum.flowable.org/t/how-to-stop-deployed-flowable-apps-from-picking-jobs/1700/7 "2018-03-01T16:30:55Z")

</div>

Hi Zoheb,

Thank you. But the problem is their is no flag to stop flowable-task executor. But for now the issue is resolved.

Thanks,  
Arpit Agrawal

---

<div class="post-metadata">

**Author:** ![joram](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/joram/32/26_2.png) [@joram](https://forum.flowable.org/u/joram)\
**Post date:** [March 17, 2018, 5:55pm UTC](https://forum.flowable.org/t/how-to-stop-deployed-flowable-apps-from-picking-jobs/1700/8 "2018-03-17T17:55:09Z")

</div>

In the upcoming 6.3.0 release, there will be a property for this: see [https://github.com/flowable/flowable-engine/blob/master/modules/flowable-spring-boot/flowable-spring-boot-starters/flowable-spring-boot-autoconfigure/src/main/java/org/flowable/spring/boot/FlowableProperties.java#L32](https://github.com/flowable/flowable-engine/blob/master/modules/flowable-spring-boot/flowable-spring-boot-starters/flowable-spring-boot-autoconfigure/src/main/java/org/flowable/spring/boot/FlowableProperties.java#L32)

---

<div class="post-metadata">

**Author:** ![arpit.agrawal](https://avatars.discourse-cdn.com/v4/letter/a/c5a1d2/32.png) [@arpit.agrawal](https://forum.flowable.org/u/arpit.agrawal)\
**Post date:** [March 17, 2018, 6:09pm UTC](https://forum.flowable.org/t/how-to-stop-deployed-flowable-apps-from-picking-jobs/1700/9 "2018-03-17T18:09:09Z")

</div>

Hi Joram,

What about flowable-task async executor. Currently the flag is not available in the .properties file. How can i control that if i want to use flowable-task on the same database as my spring boot project?  
Currently i had to go to the code, change their and build the war myself. Can that also be done through .properties in 6.3.0?

Thank You,  
Arpit

---

<div class="post-metadata">

**Author:** ![filiphr](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/filiphr/32/315_2.png) [@filiphr](https://forum.flowable.org/u/filiphr)\
**Post date:** [March 18, 2018, 6:49am UTC](https://forum.flowable.org/t/how-to-stop-deployed-flowable-apps-from-picking-jobs/1700/10 "2018-03-18T06:49:34Z")

</div>

In 6.3.0 the apps would be Spring Boot based. You would be able to configure that with a property, in the same way you can configure any Spring Boot application.

---

<div class="post-metadata">

**Author:** ![suds](https://avatars.discourse-cdn.com/v4/letter/s/3da27b/32.png) [@suds](https://forum.flowable.org/u/suds)\
**Post date:** [September 28, 2018, 4:29am UTC](https://forum.flowable.org/t/how-to-stop-deployed-flowable-apps-from-picking-jobs/1700/11 "2018-09-28T04:29:04Z")

</div>

In 6.3.1, i tried to set following properties to false for job not to run in flowable-rest.war, but still the jobs are getting fired and yet property not found exception is thrown

flowable-default.properties

```
                  flowable.async-executor-activate = false

```

engine.properties

```
                   engine.process.asyncexecutor.activate=false
```

---

<div class="post-metadata">

**Author:** ![zoheb](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/zoheb/32/337_2.png) [@zoheb](https://forum.flowable.org/u/zoheb)\
**Post date:** [September 29, 2018, 1:18pm UTC](https://forum.flowable.org/t/how-to-stop-deployed-flowable-apps-from-picking-jobs/1700/12 "2018-09-29T13:18:53Z")

</div>

Try setting  
`flowable.asyncExecutorActivate=false`

---

<div class="post-metadata">

**Author:** ![filiphr](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/filiphr/32/315_2.png) [@filiphr](https://forum.flowable.org/u/filiphr)\
**Post date:** [October 25, 2018, 6:17am UTC](https://forum.flowable.org/t/how-to-stop-deployed-flowable-apps-from-picking-jobs/1700/13 "2018-10-25T06:17:02Z")

</div>

For Spring Boot 2.0 there is no difference between the `flowable.asyncExecutorActivate` and `flowable.async-executor-activate` properties. They are the same property.

@suds do you have the `flowable-task.war` also running in the same container?

Cheers,  
Filip

---

<div class="post-metadata">

**Author:** ![suds](https://avatars.discourse-cdn.com/v4/letter/s/3da27b/32.png) [@suds](https://forum.flowable.org/u/suds)\
**Post date:** [January 3, 2019, 11:05am UTC](https://forum.flowable.org/t/how-to-stop-deployed-flowable-apps-from-picking-jobs/1700/14 "2019-01-03T11:05:06Z")

</div>

Yes, I deployed by updating the flowable-task war with above changes and seems to be fine.
