Shopify.GraphQL.Limiter.Partition (shopify_graphql v1.6.0)

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor.

Determines whether the partition is in an idle state.

Starts a Shopify.GraphQL.Limiter.Partition supervision tree and links it to the current process.

Link to this section Functions

Link to this function

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function

idle?(parent, partition_id)

Specs

Determines whether the partition is in an idle state.

A partition is considered idle when the producer's queue is empty and the consumer supervisor has no children.

Link to this function

name(parent, partition_id)

Specs

Returns the name of a Shopify.GraphQL.Limiter.Partition process.

A partition process's name is a combination of the parent limiter's name and a partition id. e.g. Shopify.GraphQL.Limiter.Partition:<partition_id>.

Link to this function

start_link(opts)

Specs

start_link(Keyword.t()) :: Supervisor.on_start()

Starts a Shopify.GraphQL.Limiter.Partition supervision tree and links it to the current process.

Link to this function

stop(parent, partition_id)

Specs