Comments (2)
Workaround available since 17345ba. However, this is a crude stop-gap solution because it only supports the first iteration of the generator. Resources may reuse a connector on subsequent iterations: a typical case is seamless pagination where the subsequent page requests may fail but are still not covered by Porter's durability features.
To fully resolve this issue we need to provide durability features at the connector level as in v1, but unlike those versions we will not require connectors to duplicate durability code in each implementation. Porter will provide a factory which accepts a closure from the connector when it makes connections and provides preconfigured durability features for that connection. This feature will target Porter v4.
from porter.
Solved with ConnectionContext::retry
introduced in #46 🏷️ 4.0.0. Connector implementations are expected to wrap their fetch code in a closure passed to this retry()
method.
from porter.
Related Issues (20)
- CachingConnector::fetch should allow passing in the cache key HOT 1
- HttpConnectorTest intermittent CI failure HOT 1
- Type classes should be migrated to phptype organization HOT 1
- Retry delays are tied to the lifetime of an import specification HOT 1
- Drop PHP 5 support HOT 2
- Document FetchExceptionHandlers
- [BC-BREAK] scriptfusion/retry 1.1.2 HOT 2
- Rate Limiter HOT 2
- How I can get what went wrong at import process ? HOT 1
- Reconsider whether forcing resources to return arrays is correct
- Laravel and CachingConnector? HOT 2
- CachingConnector is a poor user experience HOT 1
- ConnectorOptions is a bad design
- SingleRecord interface
- ExponentialAsyncDelayRecoverableExceptionHandler not being cloned correctly
- Integrate async throttle
- Document multiple instances of same provider
- Document Symfony integration best practices HOT 1
- Dependency on psr/cache:^1 HOT 6
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 porter.