-
Notifications
You must be signed in to change notification settings - Fork 2
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
Configurable media export and file synchronisation #10
Conversation
Now it assumes export count is read count from previous step So can create different services where you inject different export thresholds Then just stick the service after the step you want to check
by putting it onto the exception message directly
to match what is currently done manually
Media export tweaks
Please note that rsync won't work on AWS where Magento shares the images using the EFS. rsync is used because it can also copy just the difference instead the complete file or directory content, this behaviour does not work with NFS. In BES we have full access on the server that hosts the NFS service, so we can rsync to the disk by using plain SSH from one server to another, then the server will also share that directory tree using NFS to the Magento servers. In AWS we use EFS which is a service so rsync will just copy every time all the files. |
https://ampersand.atlassian.net/browse/BESBAU-131
Adds 2 custom steps:
Media Export
-> rsyncs images to configurable location, logs output
-> MySQL reconnect is handled in core (n.b. wasn't hooked into previously - this is achieved simply by having a separate step)
Threshold Check
-> checks the read count of the previous step (i.e. what you're trying to export) is above a configurable threshold. Can create separate services injecting different thresholds (e.g. minimum products/attributes) which you just drop after the step you want to check (documentation on how to do this is in readme)
n.b. modules using this will need some config - https://github.com/AmpersandHQ/bes-akeneo/pull/57/files