Skip to content
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

Adding extra logging on import parts of the Cronjob #377

Merged
merged 5 commits into from
Sep 13, 2018

Conversation

maximbaibakov
Copy link
Contributor

Adding extra logging on import parts of the Cronjob.

There is a bit lack of visibility around execution of the sync process.
Would be awesome to see where the sync spends more time and helps to diagnose, if the sync stuck somewhere due to some reason.

E.g. Reasons:

  • Payload was not able to generate due to M2 Core issue and failed with warning or fatal error
  • You can see how much time been spent on specific part e.g. products, orders and etc. It helped me to diagnose that cart generation was taking about 20 minutes to generate due to some slow SQL query

Adding extra logging on import parts of the Cronjob.

There is a bit lack of visibility around execution of the sync process.
Would be awesome to see where the sync spends more time and helps to diagnose, if the sync stuck somewhere due to some reason.

E.g. Reasons:
- Payload was not able to generate due to M2 Core issue and failed with warning or fatal error
- You can see how much time been spent on specific part e.g. products, orders and etc. It helped me to diagnose that cart generation was taking about 20 minutes to generate due to some slow SQL query
Create temporary directory, if that does not exist to avoid error "Failed to open stream: No such file or directory"
Create temporary directory, if that does not exist
Copy link
Collaborator

@gonzaloebiz gonzaloebiz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please open an issue for the extra logging issue and delete the extra commit for the temp directory (this is in a separate issue and already accepted)

@maximbaibakov
Copy link
Contributor Author

Hi @gonzaloebiz

Thanks for the review. Issue has been created: #393

PR has been adjusted

Regards,
Maxim

@gonzaloebiz gonzaloebiz merged commit b7a1387 into mailchimp:develop Sep 13, 2018
@gonzaloebiz
Copy link
Collaborator

Hi @maximbaibakov

thanks for your contribution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants