# Mautic worker + cron interaction

**URL:** <https://forum.mautic.org/t/mautic-worker-cron-interaction/34508>\
**Category:** Product Support\
**Created:** [December 21, 2024, 1:47pm UTC](https://forum.mautic.org/t/mautic-worker-cron-interaction/34508 "2024-12-21T13:47:52Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![marcus42](https://avatars.discourse-cdn.com/v4/letter/m/ac91a4/32.png) [@marcus42](https://forum.mautic.org/u/marcus42)\
**Post date:** [December 26, 2024, 4:11pm UTC](https://forum.mautic.org/t/mautic-worker-cron-interaction/34508/4 "2024-12-26T16:11:57Z")

</div>

I couldn’t say on that part (I’m not using docker).

Still, if the php script is ran from time to time (ideally on a scheduler), no need to use that script.

And if not, no need to use that script too.

All in all, don’t use that script. It’s a bad idea that may cause you some problems later on.

How to replace that whole script, if you ever need to:

```auto
* * * * * flock /tmp/mautic-messenger --command "/path/to/php /path/to/bin/console messenger:consume email --limit=60 --time-limit=480 --memory-limit=128M"

```

---

_[View the full topic](https://forum.mautic.org/t/mautic-worker-cron-interaction/34508)._
