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

Don't mark the daemon started until after we successfully import the … #49

Merged
merged 2 commits into from
May 8, 2024

Conversation

grahamc
Copy link
Member

@grahamc grahamc commented May 8, 2024

…closure

Description
Checklist
  • Tested changes against a test repository
  • Added or updated relevant documentation (leave unchecked if not applicable)
  • (If this PR is for a release) Updated README to point to the new tag (leave unchecked if not applicable)

src/index.ts Outdated
Comment on lines 204 to 208
this.daemonStarted = true;
actionsCore.saveState(STATE_STARTED, STARTED_HINT);

// Start the server. Once it is ready, it will notify us via the notification server.
const daemon = spawn(daemonBin, daemonCliFlags, opts);
Copy link
Member

Choose a reason for hiding this comment

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

Why don't we just move it after we spawn the daemon? That seems like a more correct time to say it's been started.

Or maybe even right after we log "Launched Magic Nix Cache" after waiting for it to start...?

Copy link
Member

@cole-h cole-h left a comment

Choose a reason for hiding this comment

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

LGTM after my comment is addressed.

@grahamc grahamc merged commit 88b25d2 into main May 8, 2024
5 checks passed
@grahamc grahamc deleted the late-start branch May 8, 2024 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants