Comments (6)
I pushed a fix for a limiter of false
not working. Still working on the limiter itself.
from shopify-graphql-elixir.
The limiter does work. We use it in production. However, I believe there is a race condition that may be shutting the limiter partition down prematurely which results in this error. I’ll look into it.
Thanks for reporting.
from shopify-graphql-elixir.
If I set the limiter to false I get this:
** (exit) exited in: GenServer.call(false, {:start_child, {{Shopify.GraphQL.Limiter.Partition, :start_link, [[parent: false,
partition_id: "rhino-camera-gear.myshopify.com"]]}, :temporary, :infinity, :supervisor, [Shopify.GraphQL.Limiter.Partition]}},
:infinity)
** (EXIT) no process: the process is not alive or there's no process currently associated with the given name, possibly
because its application isn't started
(elixir 1.10.4) lib/gen_server.ex:1013: GenServer.call/3
(shopify_graphql 1.4.0) lib/shopify/graphql/limiter.ex:48: Shopify.GraphQL.Limiter.start_partition/3
(shopify_graphql 1.4.0) lib/shopify/graphql/limiter.ex:23: Shopify.GraphQL.Limiter.send/3
(appapi_phx 0.1.9) lib/appapi_phx/shopify/product_load.ex:200: AppapiPhx.Shopify.ProductLoad.do_product_query/5
(appapi_phx 0.1.9) lib/appapi_phx/shopify/product_load.ex:21: anonymous fn/1 in
AppapiPhx.Shopify.ProductLoad.find_active_stores/0
(elixir 1.10.4) lib/enum.ex:1396: Enum."-map/2-lists^map/1-0-"/2
from shopify-graphql-elixir.
Just a heads up. I added a limiter option to disable partition monitoring. This should prevent limiter partitions from shutting down which I think should prevent this error from happening. I believe this is a race condition which makes it difficult to verify. If you continue to have problems let me know.
To disable partition monitoring you can pass monitor: false
to the :limiter_opts
config option. It's documented in the README.
I'm currently in the process of rebuilding the limiter to hopefully remove this problem.
from shopify-graphql-elixir.
Thanks for the update. I'm currently working around this issue by using a sleep function, it might not be the most efficient, but it seems to work reliably. I'll try to test out the limiter again in the near future.
from shopify-graphql-elixir.
I’ve done multiple iterations on this and have this working in production so I’m going to close this issue.
from shopify-graphql-elixir.
Related Issues (5)
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 shopify-graphql-elixir.