FsMake


ProcessMonitor Module

Module for working with the Agent.

This is used to track external processes launched by a pipeline.

Types

Type Description

Agent

The ProcessMonitor agent (MailboxProcessor) that tracks external processes launched by a pipeline.

Functions and values

Function or value Description

add proc monitor

Full Usage: add proc monitor

Parameters:

Adds a process to be tracked.

Blocks until the message has been processed by the agent.

proc : Process

The process to track.

monitor : Agent

The Agent.

create console

Full Usage: create console

Parameters:
Returns: Agent The new Agent.

Creates a new Agent.

console : IWriter

The IWriter to use.

Returns: Agent

The new Agent.

isKilled proc monitor

Full Usage: isKilled proc monitor

Parameters:
Returns: bool true if killed, false if not.

Checks if the specified process has been killed.

Blocks until the message has been processed by the agent.

proc : Process

The process to kill.

monitor : Agent

The Agent.

Returns: bool

true if killed, false if not.

kill proc monitor

Full Usage: kill proc monitor

Parameters:

Kills the specified process and tracks that it has been killed.

Blocks until the message has been processed by the agent.

proc : Process

The process to kill.

monitor : Agent

The Agent.

killAll monitor

Full Usage: killAll monitor

Parameters:

Kills all processes tracked by the Agent.

Blocks until the message has been processed by the agent.

monitor : Agent

The Agent.

remove proc monitor

Full Usage: remove proc monitor

Parameters:

Removes a process from being tracked.

Blocks until the message has been processed by the agent.

proc : Process

The process to remove.

monitor : Agent

The Agent.

shutdown monitor

Full Usage: shutdown monitor

Parameters:

Shuts down the Agent. It will no longer function after being shut down.

Blocks until the message has been processed by the agent.

monitor : Agent

The Agent.