A project has a Magento cron job implemented to export new order data to a file. This process can also be triggered by a custom bin/magento command. The functionality uses a lock file in var/locks to prevent concurrent execution.

A project has a Magento cron job implemented to export new order data to a file. This process can also be triggered by a custom bin/magento command. The functionality uses a lock file in var/locks to prevent concurrent execution.
There are instances when the process gets locked after Production deployments and order data is not exported.
How do you prevent this from happening?
A. Use the VAR_LOCKS_CLEAR variable available for the post_deploy stage in the .magento.env.yaml file
B. Write a custom post_deploy hook to delete orphan lock files and include it in the .magento.app.yaml file
C. Use the VAR_LOCKS_CLEAR variable available for the build stage in the .magento.app.yaml file
D. You must access the Production environment and delete the lock file

Download Printable PDF. VALID exam to help you PASS.

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.