Coder Social home page Coder Social logo

Comments (13)

mjordan avatar mjordan commented on May 28, 2024

Guzzle has a component called Retry-Subscriber (https://github.com/guzzle/retry-subscriber) that looks like it should be useful. Can be installed via composer.

from mik.

mjordan avatar mjordan commented on May 28, 2024

First implementation in 81b6eea.

from mik.

mjordan avatar mjordan commented on May 28, 2024

We should implement Guzzle in the other filegetters, in order to mitigate against slow response times on the CONTENTdm server due to backup jobs, etc. I can do the CdmNewspapers filegetter if you want.

from mik.

MarcusBarnes avatar MarcusBarnes commented on May 28, 2024

That would be great. Thank you.

from mik.

mjordan avatar mjordan commented on May 28, 2024

@MarcusBarnes can you take a look to make sure that how I've implemented error catching in https://github.com/MarcusBarnes/mik/blob/issue-3/src/filegetters/CdmNewspapers.php#L107 (and similar at lines 220, 252, 277)?

from mik.

mjordan avatar mjordan commented on May 28, 2024

@MarcusBarnes I've added logging to the Guzzle calls. Take a quick look? https://github.com/MarcusBarnes/mik/blob/issue-3/src/filegetters/CdmNewspapers.php#L115

I tested by turning off my network connection half way through a job. Pointers showed up in problem_records.log and Guzzle errors showed up in mik.log.

from mik.

MarcusBarnes avatar MarcusBarnes commented on May 28, 2024

👍 Tested with a CT SpecificSet batch. It appears to function as expected. When I disconnected the network, the pointers showed up in problme_records.log and the Guzzle errors were recorded in the mik.log. Thank you @mjordan for your work on this.

from mik.

mjordan avatar mjordan commented on May 28, 2024

Great, thanks. I'll incorporate this into the CdmSingleFile filegetter as well.

from mik.

MarcusBarnes avatar MarcusBarnes commented on May 28, 2024

@mjordan That would be awesome. Thank you.

from mik.

mjordan avatar mjordan commented on May 28, 2024

Done in 169597c. I think we can merge issue-3 into master and close this issue. @MarcusBarnes any reason not to do that?

from mik.

mjordan avatar mjordan commented on May 28, 2024

... and now CdmPhpDocuments is done.

from mik.

MarcusBarnes avatar MarcusBarnes commented on May 28, 2024

@mjordan Thank you. I don't see any reason to not to merge. I'll double check and then go ahead if everything looks good. Thanks again for the contribution.

from mik.

mjordan avatar mjordan commented on May 28, 2024

Merged into master.

from mik.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.