GustShell.TaskWorker.Adapter (gust_shell v0.1.0)

Copy Markdown View Source

A Gust.DAG.TaskWorker that runs a DAG task as a shell command.

The task's command and execution options are prepared by the parser and executed via :exec.run/2. Output is captured incrementally from :stdout/:stderr messages, and the worker reports the task result back to its owner once the OS process exits (:DOWN), translating non-zero exit codes and signals into GustShell.ShellExitError.

Summary

Functions

Returns a specification to start this module under a supervisor.

Ignores DOWN messages from mismatched PIDs.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

handle_info(msg, state)

Ignores DOWN messages from mismatched PIDs.

start_link(args)