# Scheduled Tasks/Cron Jobs

**URL:** <https://community.dreamfactory.com/t/scheduled-tasks-cron-jobs/306>\
**Category:** Server-Side Scripting\
**Created:** [September 2, 2014, 8:21am UTC](https://community.dreamfactory.com/t/scheduled-tasks-cron-jobs/306 "2014-09-02T08:21:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![antonyjsmith](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/antonyjsmith/32/1203_2.png) [@antonyjsmith](https://community.dreamfactory.com/u/antonyjsmith)\
**Post date:** [September 2, 2014, 8:21am UTC](https://community.dreamfactory.com/t/scheduled-tasks-cron-jobs/306/1 "2014-09-02T08:21:58Z")

</div>

Hi,

Is there any way to set scheduled task on server side scripts in 1.7? I can’t seem to find any references in the documentation or forum.

My initial thoughts on a workaround were to set up a cron on the server to trigger an event I can listen for on the DSP. Does this sound sensible or am I missing something!

Thanks

---

<div class="post-metadata">

**Author:** ![Mark](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/mark/32/69_2.png) [@Mark](https://community.dreamfactory.com/u/Mark)\
**Post date:** [September 4, 2014, 6:05pm UTC](https://community.dreamfactory.com/t/scheduled-tasks-cron-jobs/306/2 "2014-09-04T18:05:15Z")

</div>

Antony,

Sorry for the delayed response, that does make perfect sense.

You could setup a server-side script that would then call on a cron job that you create.

We would have to build a service or a module that this script would call - then ultimately, would be able to run any service via that cron job.

Thanks,

- Mark

---

<div class="post-metadata">

**Author:** ![dareljohnson](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/dareljohnson/32/84_2.png) [@dareljohnson](https://community.dreamfactory.com/u/dareljohnson)\
**Post date:** [September 5, 2014, 8:11pm UTC](https://community.dreamfactory.com/t/scheduled-tasks-cron-jobs/306/3 "2014-09-05T20:11:45Z")

</div>

Anthony, you might need another backend for that! Take a look at [OpenShift](http://www.openshift.com "OpenShift") . You can write all your backend code and deploy to an OpenShift Cartridge. Once you’ve set it up, you can copy your scripts (jobs) to the .openshift/cron/{minutely/hourly/daily/weekly/monthly} folder and run the RHC client command to attach cron-1.4 to the Cartridge.

---

<div class="post-metadata">

**Author:** ![antonyjsmith](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/antonyjsmith/32/1203_2.png) [@antonyjsmith](https://community.dreamfactory.com/u/antonyjsmith)\
**Post date:** [September 8, 2014, 3:49pm UTC](https://community.dreamfactory.com/t/scheduled-tasks-cron-jobs/306/4 "2014-09-08T15:49:33Z")

</div>

Thanks Mark, always like to validate my thought process!

I’m running a Bitnami stack on linux @dareljohnson so setting up a cron will be no problem. Thanks for the tip though!

Antony
