Function goose::get_worker_id[][src]

pub fn get_worker_id() -> usize
Expand description

Returns the unique identifier of the running Worker when running in Gaggle mode.

The first Worker to connect to the Manager is assigned an ID of 1. For each subsequent Worker to connect to the Manager the ID is incremented by 1. This identifier is primarily an aid in tracing logs.