# Add flag for when application.createRenditions() is running

**URL:** <https://forums.creativeclouddeveloper.com/t/add-flag-for-when-application-createrenditions-is-running/1341>\
**Category:** UXP Plugin API\
**Tags:** api-feedback\
**Created:** [October 19, 2019, 5:58am UTC](https://forums.creativeclouddeveloper.com/t/add-flag-for-when-application-createrenditions-is-running/1341 "2019-10-19T05:58:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Velara](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/velara/32/1278_2.png) [@Velara](https://forums.creativeclouddeveloper.com/u/Velara)\
**Post date:** [October 19, 2019, 5:58am UTC](https://forums.creativeclouddeveloper.com/t/add-flag-for-when-application-createrenditions-is-running/1341/1 "2019-10-19T05:58:10Z")

</div>

_Only one createRenditions() call can be executing at any given time, so wait for the Promise it returns before calling it again._

Add flag to show if renditions are running.

```
if (application.renditionsAreRunning) { return }

```

Since renditions are asynchronous add flag to indicate if create renditions is available to call.

**Use Case**  
Balinda has written a plugin that exports vectors of medical devices. Often she has 1000 renditions per project. She broken up exporting into groups and uses the `renditions are running` flag to check if export has finished.

---

<div class="post-metadata">

**Author:** ![stevekwak](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/stevekwak/32/48_2.png) [@stevekwak](https://forums.creativeclouddeveloper.com/u/stevekwak)\
**Post date:** [October 21, 2019, 9:07pm UTC](https://forums.creativeclouddeveloper.com/t/add-flag-for-when-application-createrenditions-is-running/1341/2 "2019-10-21T21:07:48Z")

</div>

if you `await` or `.then` the function inside only executes after the promise is returned.
