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

Talkative mothership interface #253

Merged
merged 27 commits into from
Jun 23, 2021

Conversation

mvousden
Copy link
Contributor

@mvousden mvousden commented Jun 22, 2021

Resolves #245.

This changeset:

  • Causes Motherships to post on application state transition (even outside debug mode!).
  • Changes the existing acknowledgement system in Root to Post when all Motherships have reached a certain state. This changeset adds some fields to OrchBase to facilitate this.
  • Causes the deployment command to write useful information to its microlog.
  • Causes Motherships to propagate errors to each other, via Root (logging as appropriate).
  • Fixes a bug where Motherships would print their close-down message outside debug mode.

Notably, it does not:

  • Introduce a time-out for deployment and initialisation. It'd take too long to get right, and it's fiddly because it depends on the application being loaded.
  • Support recalling of an initialised or running application (as usual). You'll need to start/stop the application first.

This changeset was tested with the ring_test example on Ayres, using thread-filling and bucket-filling placement.

Also see the documentation PR at POETSII/orchestrator-documentation#18

mvousden added 26 commits June 18, 2021 08:24
…nters.

They're difficult to get hold of from only the application name.
@mvousden mvousden mentioned this pull request Jun 23, 2021
/* Sends a message to Root explaining that an app is broken. */
void Mothership::tell_root_app_is_broken(std::string appName)
{
PMsg_p sadTidings;
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

@@ -86,14 +86,36 @@ void OrchBase::MshipCommand(Cli::Cl_t clause, std::string command)

/* Set up the message given the input arguments (catching an invalid
* command input from somewhere). */
if (command == "reca")
int postIndex = 999; /* These defaults can never be used. */
Copy link
Contributor

Choose a reason for hiding this comment

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

I am glad you default to something valid but obtuse!

@mvousden mvousden merged commit b2e6707 into development Jun 23, 2021
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.

Deploy and Init do not Post on success/failure
2 participants