View Source Runlet.Ctrl.Flow (runlet v1.2.6)

dynamically change flow control for a running event stream

Summary

Functions

Alters the flow control for a running process to 1/minute.

Alters the flow control for a running process or processes to count events in minutes

Alters the flow control for several processes running as a different user to count events in minutes.

Functions

@spec exec(Runlet.t(), Runlet.PID.t()) :: Enumerable.t()

Alters the flow control for a running process to 1/minute.

Link to this function

exec(env, pid, count, minutes)

View Source

Alters the flow control for a running process or processes to count events in minutes:

# pid 1234: 10 events/2 minutes
flow 1234 10 2

# pids 1234, 2345, 123456
flow "1234 2345 12346" 10 2
Link to this function

exec(env, pid, count, minutes, uid)

View Source

Alters the flow control for several processes running as a different user to count events in minutes.

flow 1234 10 2 "nobody"
flow "1234 2345 12346" 10 2 "nobody"