Adjust cron jobs for Mautic... is it possible?
-
We have years long experience with mautic
Its important to help with a default cronjob setup. The one from the docs work, but its not optimal. I will help setting it up in a better way together with you, if you like.
For now it would be good, if the out of the box setup for cronjobs in cloudron could also be disabled. I did it by commenting out every line in the crontab.system - but will this be replaced again by an update or not? Its in the /app/data directory. So I think it will not?
I already changed my cronjob setup with a shell file. I trigger this every minute, in case its still running, it will be ignored. I will need to extend it by other optional cronjob tasks - maybe having even two or more scripts. One to run every minute (if server can handle it). And then some maintenance task that don't need to run that often.
Update - the current version can now be found at:
https://github.com/twentyZen/mautic-cronjobsMyself I'm not a script or Linux Professional. Probably that approach can be improved.
-
D dsp76 referenced this topic on
-
For instance - whats the php memory limit on cli? Is it the same limit as for the mautic instance overall?
@dsp76 By default, the cli and apache have same php memory limit - 512M . If you change the memory_limit in /app/data/php.ini , it will affect both.
-
Anything in the logs? Which mautic package are you on?
-
D dsp76 referenced this topic on
-
We have years long experience with mautic
Its important to help with a default cronjob setup. The one from the docs work, but its not optimal. I will help setting it up in a better way together with you, if you like.
For now it would be good, if the out of the box setup for cronjobs in cloudron could also be disabled. I did it by commenting out every line in the crontab.system - but will this be replaced again by an update or not? Its in the /app/data directory. So I think it will not?
I already changed my cronjob setup with a shell file. I trigger this every minute, in case its still running, it will be ignored. I will need to extend it by other optional cronjob tasks - maybe having even two or more scripts. One to run every minute (if server can handle it). And then some maintenance task that don't need to run that often.
Update - the current version can now be found at:
https://github.com/twentyZen/mautic-cronjobsMyself I'm not a script or Linux Professional. Probably that approach can be improved.
hey @dsp76 thanks for sharing... so if I install this shell file to my Mautic installation on Cloudron, it'll speed up the cronjobs?
Unfortunately I'm unable to add an .env file because on Cloudron the app is a "read only filesystem"
-
@jordanurbs have you tried running the cronjob manually . https://docs.cloudron.io/apps/mautic/#system-cron-jobs ? Maybe it's erroring?
-
hey @dsp76 thanks for sharing... so if I install this shell file to my Mautic installation on Cloudron, it'll speed up the cronjobs?
Unfortunately I'm unable to add an .env file because on Cloudron the app is a "read only filesystem"
@jordanurbs you could put those in the /app/data folder which is writeable?