Comments (13)
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.
First implementation in 81b6eea.
from mik.
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.
That would be great. Thank you.
from mik.
@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.
@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.
from mik.
Great, thanks. I'll incorporate this into the CdmSingleFile filegetter as well.
from mik.
@mjordan That would be awesome. Thank you.
from mik.
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.
... and now CdmPhpDocuments is done.
from mik.
@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.
Merged into master.
from mik.
Related Issues (20)
- include_migrated_from_uri hard-codes SFU URL HOT 11
- regex_replace filter not available? HOT 9
- Postwritehook suggestion: reorganize output by filetype? HOT 3
- CDM toolchains extracting wrong files due to repeating ID numbers HOT 6
- Toolchain: CONTENTdm compound PDFs HOT 33
- CSV Compound Child metadata ignored HOT 7
- Make extensions of page images configurable in CSV Book and Newspaper toolchains HOT 1
- Test using PHP 7.2 and 7.3
- CsvBooks doesn't like periods in filenames HOT 17
- checkconfig doesn't detect missing CSV input file
- Simple Archive toolchain HOT 72
- OAI toolchain error: "Undefined namespace prefix" HOT 1
- OAI toolchain error: "No such file or directory" HOT 1
- OAI-PMH Filegetter only works for DC HOT 11
- Mysterious mapping error? HOT 9
- OAI: If item identifier has special characters, temp metadata filename doesn't match filegetter HOT 4
- Islandora 8: Create a toolchain that produces YAML config files for CSV migrations HOT 1
- CsvCompound fails to create directories HOT 1
- Delimiter problem in CSV Newspapers toolchain? HOT 15
- Mysterious failures in the CSV Newspaper toolchain HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mik.