Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gatsby-parallel-runner

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gatsby-parallel-runner

This is an early WIP version of a runner for gatsby that can parallelize tasks like image processing.

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
24
decreased by-55.56%
Maintainers
1
Weekly downloads
 
Created
Source

Gatsby Parallel Runner

This is an early WIP version of a runner for gatsby that can parallelize tasks like image processing.

When gatsby is started from a parent process with the environment variable ENABLE_GATSBY_EXTERNAL_JOBS set, it will communicate some jobs up to the parent process via ipc, instead of running them in it's own internal queue.

This allows a parent process to orchestrate certain task for better paralelization with cloud functions, etc.

This WIP will paralelize the sharp plugin image transformations to a Google Cloud Function via Google PubSub.

There's currently no versioning of the sharp plugin and no real error handling, but the basics are working.

Intallation and usage

Install in your gatsby project:

npm i gatsby-parallel-runner

Set relevant env variables in your shell:

export GOOGLE_APPLICATION_CREDENTIALS=~/path/to/your/google-credentials.json
export TOPIC=parallel-runner-topic
export WORKER_TOPIC=function-worker-topic

Deploy the cloud function:

./node_modules/.bin/gatsby-parallel-runner deploy

To run a Gatsby build:

./node_modules/.bin/gatsby-parallel-runner

FAQs

Package last updated on 05 Feb 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc