# Script in progress - always

**URL:** https://forum.mautic.org/t/script-in-progress-always/3533
**Category:** Product Support
**Created:** [April 16, 2016, 7:02pm UTC](https://forum.mautic.org/t/script-in-progress-always/3533 "2016-04-16T19:02:53Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![AllanBinder](https://avatars.discourse-cdn.com/v4/letter/a/a6a055/32.png) [@AllanBinder](https://forum.mautic.org/u/AllanBinder)
#### Post date: [April 16, 2016, 7:02pm UTC](https://forum.mautic.org/t/script-in-progress-always/3533/1 "2016-04-16T19:02:53Z")

</div>

When I try to run the mautic:campaigns:trigger or the mautic:campaigns:update scripts I get an error:  
  
Script in progress. Use -f or --force to force execution.  
  
It doesn’t matter when or how I try it - the same error every time.  
  
I’ve been able to google my way to some other guys who had the problem - but noone ever posted a solution it seems.  
  
Help would be much appreciated - what could possibly be wrong?

---

<div class="post-metadata">

### Author: ![AllanBinder](https://avatars.discourse-cdn.com/v4/letter/a/a6a055/32.png) [@AllanBinder](https://forum.mautic.org/u/AllanBinder)
#### Post date: [April 16, 2016, 7:02pm UTC](https://forum.mautic.org/t/script-in-progress-always/3533/2 "2016-04-16T19:02:53Z")

</div>

When I try to run the mautic:campaigns:trigger or the mautic:campaigns:update scripts I get an error:  
Script in progress. Use -f or --force to force execution.  
It doesn’t matter when or how I try it - the same error every time.  
I’ve been able to google my way to some other guys who had the problem - but noone ever posted a solution it seems.  
Help would be much appreciated - what could possibly be wrong?

---

<div class="post-metadata">

### Author: ![vln104](https://avatars.discourse-cdn.com/v4/letter/v/5f9b8f/32.png) [@vln104](https://forum.mautic.org/u/vln104)
#### Post date: [April 17, 2016, 9:14am UTC](https://forum.mautic.org/t/script-in-progress-always/3533/3 "2016-04-17T09:14:32Z")

</div>

Hi,

I had this issue once running on a shared host. I found that my issue was that I set the cron jobs to run too frequently, like every 5 mins. This is was initially when there weren’t many events to process but as the amount of work grew, the processing times required got longer. I believe my hosting provider might have some throttling in place so in the end I had to configure the cron jobs to run less frequently, like every half and hour and it was OK.

Hope it helps.

Linh

---

<div class="post-metadata">

### Author: ![Scalar](https://avatars.discourse-cdn.com/v4/letter/s/76d3ee/32.png) [@Scalar](https://forum.mautic.org/u/Scalar)
#### Post date: [June 21, 2016, 3:14pm UTC](https://forum.mautic.org/t/script-in-progress-always/3533/4 "2016-06-21T15:14:00Z")

</div>

The only way around this is by adding --force for me, then the crons run, but I have read that its not good practice to use -f or --force permanently.  
I have adjusted my crons to run every 15 mins, staggered, and set a forced version twice per day just incase, as advised on here.

---

<div class="post-metadata">

### Author: ![dirk\_s](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/dirk_s/32/748_2.png) [@dirk\_s](https://forum.mautic.org/u/dirk_s)
#### Post date: [June 21, 2016, 12:36pm UTC](https://forum.mautic.org/t/script-in-progress-always/3533/5 "2016-06-21T12:36:45Z")

</div>

I currently experience the same with a not too small virtual server. It mainly has only mautic cronjobs. The mautic instance itself is not very big yet. However - I run also into the “script in progress” situation. Usually the script completes within 1 or 2 seconds. So 5 min should not be a problem?

---

<div class="post-metadata">

### Author: ![jantheofel](https://avatars.discourse-cdn.com/v4/letter/j/e47c2d/32.png) [@jantheofel](https://forum.mautic.org/u/jantheofel)
#### Post date: [June 21, 2016, 1:21pm UTC](https://forum.mautic.org/t/script-in-progress-always/3533/6 "2016-06-21T13:21:14Z")

</div>

I had this when launching cronjobs parallel. Fix them once using -f and the do just one cronjob which process them one by one. So that might be one shell skript like:

[code]#!/bin/bash

cd whatsoeverpath  
php app/console mautic:segments:update 2\>&1  
php app/console mautic:campaigns:trigger 2\>&1  
php app/console mautic:campaigns:update 2\>&1[/code]
