# Okteto deploy and "run once" (batch) jobs

**URL:** <https://community.okteto.com/t/okteto-deploy-and-run-once-batch-jobs/103>\
**Category:** How Do I?\
**Created:** [May 26, 2022, 10:55am UTC](https://community.okteto.com/t/okteto-deploy-and-run-once-batch-jobs/103 "2022-05-26T10:55:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![andrevtg](https://sea1.discourse-cdn.com/flex019/user_avatar/community.okteto.com/andrevtg/32/30_2.png) [@andrevtg](https://community.okteto.com/u/andrevtg)\
**Post date:** [May 26, 2022, 10:55am UTC](https://community.okteto.com/t/okteto-deploy-and-run-once-batch-jobs/103/1 "2022-05-26T10:55:00Z")

</div>

Hi all.

When using “okteto deploy” (docker-compose syntax) can one of the services behave like a batch job (run once and no restarts)?

---

<div class="post-metadata">

**Author:** ![pchico83](https://sea1.discourse-cdn.com/flex019/user_avatar/community.okteto.com/pchico83/32/25_2.png) [@pchico83](https://community.okteto.com/u/pchico83)\
**Post date:** [May 26, 2022, 10:56am UTC](https://community.okteto.com/t/okteto-deploy-and-run-once-batch-jobs/103/2 "2022-05-26T10:56:55Z")

</div>

Yes! `okteto deploy` creates a Job if the `restart` policy is different than `always`.  
More information is available here:

> **[Docker Compose Reference | Okteto Documentation](https://www.okteto.com/docs/reference/compose/#restart-string-optional)**
>
> Okteto allows you to develop applications using docker-compose files
