# Update data on deploy

**URL:** <https://community.appfarm.io/t/update-data-on-deploy/801>\
**Category:** Ask the community\
**Created:** [November 1, 2023, 1:11pm UTC](https://community.appfarm.io/t/update-data-on-deploy/801 "2023-11-01T13:11:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![OleSorheim](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/olesorheim/32/1171_2.png) [@OleSorheim](https://community.appfarm.io/u/OleSorheim)\
**Post date:** [November 1, 2023, 1:11pm UTC](https://community.appfarm.io/t/update-data-on-deploy/801/1 "2023-11-01T13:11:40Z")

</div>

Hi!

Is it possible to update data in production on deploy? If so How?

Spesifically we have a kanban-board, where one status for tasks is “Deployed” (This is to avoid clugging the board with tasks that are finished and deployed to production). I want to set all tasks that are “Completed” to “Deployed” automatically on deploys to production.

---

<div class="post-metadata">

**Author:** ![isabelslorer](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/isabelslorer/32/856_2.png) [@isabelslorer](https://community.appfarm.io/u/isabelslorer)\
**Post date:** [November 1, 2023, 2:09pm UTC](https://community.appfarm.io/t/update-data-on-deploy/801/2 "2023-11-01T14:09:48Z")

</div>

Hi!

I don’t think there exists an “on deploy” event handler, but there are other things you can do to solve this.

One option is creating a separate app or a service for updating data where you run actions for this purpose. You can also create a schedule that runs a service for this purpose regularly with a frequency depending on the needs. Another option is having an action with an if-statement “if Active environment = production AND tasks with status = “completed” exist in the data source → update objects” that you can run wherever is the most convenient.
