Skip to content

internal/engine/local: controller for local serve#2735

Merged
dbentley merged 6 commits into
masterfrom
dbentley/local_controller
Jan 8, 2020
Merged

internal/engine/local: controller for local serve#2735
dbentley merged 6 commits into
masterfrom
dbentley/local_controller

Conversation

@dbentley

@dbentley dbentley commented Jan 8, 2020

Copy link
Copy Markdown
Contributor

This is a draft.

Things that are missing that should be here before merging:

  • integrate with DI/wire
  • upper/reducer logic

For a next PR:

  • actually run processes

@dbentley
dbentley requested review from jazzdan and landism January 8, 2020 15:34
Comment thread internal/engine/local/controller.go Outdated
proc.doneCh = c.execer.Start(ctx, spec.ServeCmd, logger.Get(ctx).Writer(logger.InfoLvl), statusCh)
}

// lastProcess represents the last process

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Can we expand on this comment? Why do we need a sentinel struct to know when we've reached the end of the processes?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Oh, it's not a sentinel struct. It's where we store info about the most recent exec, if any. Ideas for better names?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Ohh I see. mostRecentProcess? Or the extra verbose, non-Go-like mostRecentlyExecedProcess?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Went for currentProcess, but happy to change.

@dbentley
dbentley marked this pull request as ready for review January 8, 2020 17:50
@dbentley
dbentley merged commit 2730bfd into master Jan 8, 2020
@nicks
nicks deleted the dbentley/local_controller branch February 3, 2022 16:56
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