Issue when running the OpenMage cron in a Docker container (DDEV case) #3795
Unanswered
addison74
asked this question in
Questions & Answers
Replies: 2 comments 5 replies
-
For debugging crons I use n98 on the cli, or if I want to Aoe_Scheduler from the backend. So, why is it needed to have a perma cron run in ddev? |
Beta Was this translation helpful? Give feedback.
3 replies
-
In some cases I've seen the same behavior (empty cron_schedule table), in that case I was running (I know it's a workaround) |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Running of the cron.sh script from the OpenMage root directory populates the cron_schedule table with data. If it is done automatically, then the following line must be added in the user's crontab
This means that the script is running every minute.
DDEV makes testing easier and is based on Docker. It configures so that in less than a minute you can start an instance of OpenMage and provides useful commands to import/export the database by creating snapshots, run commands in containers and many more. Changing the configuration you can use immediately Nginx or Apache, PHP any version.
I managed to configure the cron and if I execute the command
ddev exec crontab -l
the line with the OpenMage script is displayed, but the table in the database is not populated with data. I waited a long time and nothing happened. I ran the script directly in the container without success.Without a functional configuration, the OpenMage cron cannot be run, especially the sending of notifications after the order, newsletter subscription, ...
I will try finding a solution to make this important part of the OpenMage test environment based on DDEV work. This is the case for (Windows 10/11 + Mkcert + WSL + Docker + DDEV).
Beta Was this translation helpful? Give feedback.
All reactions