Skip to content

Document juju-exec in ops charming practice #2272

@dimaqq

Description

@dimaqq

We should probably document juju-exec as part of charming practice
Dima Tisnek to open an issue to have us add that in the docs, David to post on the issue where the new content should go.
How to manage the workload :: machine :: asynchronous operations
Should we recommend a specific charm lib?
Presumably, we’d recommend to juju-exec the charm code, over bash scripts that call hook commands directly.
For reconcilers: pretty easy, just reconcile (except we insist on listening on specific events)
For delta charms: should we expose user-defined / fake Juju events in Ops?
Note that a complex charm may use multiple libs that ultimately juju-exec
Or shall we tell chambers to juju-exec as update-status?
Or how can a delta change listen for juju-exec invocations?
How to add event payload (env vars? temp file?)
Do we know for a fact that juju-exec is mutually exclusive wrt. Juju event dispatch?

Metadata

Metadata

Assignees

Labels

docsImprovements or additions to documentation

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions