Skip to content
This repository has been archived by the owner on Dec 2, 2024. It is now read-only.

[chain-index]: start a web server with forkProcess instead of withAsync #382

Closed
wants to merge 1 commit into from

Conversation

ghost
Copy link

@ghost ghost commented Mar 30, 2022

This PR replaces withAsync with forkProcess to start a web server in a different process to avoid thread blocking because processEventsQueue and syncChainIndex take too much resources.

Not sure if it a good solution but at the moment it seems the only one that works.


Pre-submit checklist:

  • Branch
    • Tests are provided (if possible)
    • Commit sequence broadly makes sense
    • Key commits have useful messages
    • Relevant tickets are mentioned in commit messages
    • Formatting, materialized Nix files, PNG optimization, etc. are updated
  • PR
    • Self-reviewed the diff
    • Useful pull request description
    • Reviewer requested

@ghost ghost requested review from sjoerdvisscher and koslambrou March 30, 2022 10:40
Copy link
Contributor

@sjoerdvisscher sjoerdvisscher left a comment

Choose a reason for hiding this comment

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

Just needs an updateMaterialized.

@ghost ghost closed this Apr 1, 2022
@ghost ghost deleted the chain-index-web-process branch April 1, 2022 10:40
@ghost
Copy link
Author

ghost commented Apr 1, 2022

The proper fix is #386.

This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant