Comments (4)
It's already there.
from php-shopify.
@warely just bare in mind that the library will keep retrying indefinitely in a while loop until it gets a success. This can be a huge problem if you have an application that runs concurrent workers that runs jobs in parallel. It can leave some of your worker processes hanging for indefinite amounts of time waiting for requests to succeed.
I ended up forking this repo to remove the retry logic and implemented it into our queue retry system.
from php-shopify.
@shawnhind Can you expand into what you did to create a queue retry system? I assume the loops can be broken by setting hard call limits for script execution times on the PHP script?
from php-shopify.
@warely well our app is in laravel and we use background jobs and Laravel's queue system to process some shopify data. When an API call fails due to throttling we re-queue the job with a delay. But the queue is set up to be prioritized in such a way that if there are other jobs to process it won't keep attempting ones that are failing. If I had left this libraries throttling code in, all the queue workers who started getting a throttle error would have kept being retried and tying up that worker instead of processing other things.
from php-shopify.
Related Issues (20)
- 400 invalid_url
- Accessing AssignedFulfillmentOrder HOT 4
- wat's the way to update the order to paid
- CancellationRequest (am I missing it?) HOT 3
- fulfillment its giving me a 404 error HOT 7
- Translations for items HOT 1
- Error 500 on IIS - Not on apache (MAMP)
- Get 500 error code when put image product to shopify HOT 1
- Not adding Product options and variants to Shopify product HOT 1
- Can't get a list of transactions HOT 1
- how can I create Companies via API
- I am trying to obtain a list of orders with over 250 contents
- Operation timed out after 10000 milliseconds with 0 out of 0 bytes received, PHPShopify\ShopifyResource::get(["archived", "id,name,total_price,currency,shipping_address,created_at,line_items"]) HOT 1
- Get fulfilled orders HOT 4
- Any way to perform GraphQL queries as if they are coming from the Shopify Admin?
- how to obtain location list HOT 4
- How do I upload a return label to a return enquiry?
- Can't find the customer from the order
- Your app must immediately authenticate using OAuth before any other steps occur.
- getAccessToken returns HTTP Code 301
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 php-shopify.