-
-
Notifications
You must be signed in to change notification settings - Fork 656
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Please add cron support #438
Comments
For production images running Magento I also require cron, however I am using the one from the host system. Either via
Or via
This works well for me. Let me know if this also works for you. |
@cytopia here how it looks now
In the line where I call So this is not a solution for Magento 2 |
@TomashKhamlai If you are inside the PHP container, what is the exact command to run the Magento 2 cronjob? |
Inside of PHP container I run To check I use
So something wrong with my crontab or Magento 2 application wants to have acces to the cron executable. |
Does this work if you do a |
The next PHP-FPM release will have |
Today, I tried to do: Then I logged in to PHP container and issued this commands:
And here what happens when it is installed by hands:
I hope this helps. |
So once |
This has now been fixed the merging the above linked PR. Check out the latest master branch again. |
@cytopia, what output is after issuing?
I see:
I can see the changes in |
what container version are you on? And what is your current Devilbox git hash? |
commit 40d9bd1 |
I have checked and I can verify that cron and crontab are not available inside of php container. |
OK, good to hear. Does the Magento cron command now succeed? |
Nope. No cron, no crontab and |
It's both available in
|
I see support has been added but how do you overcome the fact that the crontab is not persistent? What use is it if it can't survive a restart. |
I needed to follow these additional instructions in order to get it working
So my command in the crontab would look like this: |
Even following the previous suggestions I'm not able to make cronjob work. |
I found a solution that seems to work:I created a file
In my project directory, I added the file
This can easily be tested with (which can again be removed later with I've also created some PRs to support this functionality out-of-the-box:
Hope this helps anyone. File
|
ISSUE TYPE
SUMMARY
Cron is often used by CMS
Goal
Magento Upgrade process is possible with cron. If this feature can have negative impact on the whole system then instructions for adding external cron docker in Magento tutorial would be enough to resolve this feature request
The text was updated successfully, but these errors were encountered: