Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(gatsby): enable external jobs with ipc #20835

Merged
merged 7 commits into from
Jan 24, 2020

Conversation

wardpeet
Copy link
Contributor

@wardpeet wardpeet commented Jan 24, 2020

Description

Enable external job execution through IPC messaging. If IPC is enabled & ENABLE_GATSBY_EXTERNAL_JOBS is true. We serialize the job object and send it to the main process. Now the main process can execute it on gatsby's behalf or run it on different hardware.
We enable 3 IPC actions:

  • JOB_COMPLETED: let gatsby know if a job is completed
  • JOB_FAILED: let gatsby know if a job has failed
  • JOB_NOT_WHITELISTED: let gatsby know it should run the job locally
    The parent process listens on the JOB_CREATED action which holds the whole job object.

Related Issues

#19831

@wardpeet wardpeet requested a review from a team as a code owner January 24, 2020 12:44
@pieh pieh self-assigned this Jan 24, 2020
@wardpeet wardpeet added the bot: merge on green Gatsbot will merge these PRs automatically when all tests passes label Jan 24, 2020
Copy link
Contributor

@pieh pieh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes! 🥇

@gatsbybot gatsbybot merged commit b4c5bfb into gatsbyjs:master Jan 24, 2020
@wardpeet wardpeet deleted the feat/jobs-ipc branch September 23, 2020 18:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bot: merge on green Gatsbot will merge these PRs automatically when all tests passes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants