Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
maestro-core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
maestro
maestro-core
Commits
6ed4ba46
Commit
6ed4ba46
authored
Sep 6, 2022
by
Christopher Haine
Browse files
Options
Downloads
Patches
Plain Diff
stories
parent
ba048d65
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/sphinx/stories.rst
+30
-0
30 additions, 0 deletions
docs/sphinx/stories.rst
with
30 additions
and
0 deletions
docs/sphinx/stories.rst
+
30
−
0
View file @
6ed4ba46
...
@@ -3,6 +3,8 @@ Users' Stories
...
@@ -3,6 +3,8 @@ Users' Stories
"How can I do [...] with Maestro Core?"
"How can I do [...] with Maestro Core?"
.. _user-metadata:
User metadata
User metadata
-------------
-------------
...
@@ -48,6 +50,7 @@ attributes<metadata>`.
...
@@ -48,6 +50,7 @@ attributes<metadata>`.
".maestro.my-namespace.my-key",
".maestro.my-namespace.my-key",
&value, ...);
&value, ...);
.. _story_cherry:
Cherry-pick CDOs of interest based on metadata
Cherry-pick CDOs of interest based on metadata
----------------------------------------------
----------------------------------------------
...
@@ -115,6 +118,8 @@ consumer CDO thanks to their identical name, and transparently performs the
...
@@ -115,6 +118,8 @@ consumer CDO thanks to their identical name, and transparently performs the
transformation on the DEMANDer, and ensures the CDO is in the requested layout
transformation on the DEMANDer, and ensures the CDO is in the requested layout
when the DEMAND returns.
when the DEMAND returns.
.. _withdraw-early:
Not let producers withdraw early
Not let producers withdraw early
--------------------------------
--------------------------------
...
@@ -152,3 +157,28 @@ which means the consumer here, upon receiving the ``offer`` event, may
...
@@ -152,3 +157,28 @@ which means the consumer here, upon receiving the ``offer`` event, may
``declare`` and ``require`` the CDO associated with the event, before it may be
``declare`` and ``require`` the CDO associated with the event, before it may be
``withdrawn``, because the producer component cannot proceed, in that the
``withdrawn``, because the producer component cannot proceed, in that the
``mstro_cdo_offer`` is not returning before receiving the ``offer_ack``.
``mstro_cdo_offer`` is not returning before receiving the ``offer_ack``.
Making sure an app is up and running with Maestro core
------------------------------------------------------
CDOs may also be used as semaphores in a sense. An app may notify its readiness
with an empty CDO
.. code-block:: c
mstro_cdo_declare(CDO_READY_NAME, MSTRO_ATTR_DEFAULT, &cdo_ready);
mstro_cdo_offer(cdo_ready);
And typically ``withdraw`` and ``dispose`` at the very end, when it is
effectively not *ready* to work anymore. On the other side, apps willing to
check its readiness would
.. code-block:: c
mstro_cdo_declare(CDO_READY_NAME, MSTRO_ATTR_DEFAULT, &cdo_ready);
mstro_cdo_require(cdo_ready);
mstro_cdo_demand(cdo_ready);
mstro_cdo_dispose(cdo_ready);
When ``demand`` returns, the probing app is certain the sender is *ready*.
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment