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 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 Write a custom 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 variable available for the build stage in the
D) You must access the Production environment and delete the lock file
Correct Answer:
Verified
Q1: Your client is expecting a five-day sale
Q2: A merchant using Magento Commerce Cloud Pro
Q4: For the Magento search backend, you would
Q5: You are updating a Magento Commerce Cloud
Q6: You migrated a live On-Premise application to
Q7: A custom module that adds a new
Q8: You created a custom module that is
Q9: You add a new Composer dependency utilizing
Q10: On a project that deploys static content
Q11: You are tasked to improve the user
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents