View Source sidejob_resource_sup (sidejob v2.2.0)
The sidejob_resource_sup manages the entire supervision hierarchy for a sidejob resource. Thus, there is one resource supervisor for each registered sidejob resource.
The resource supervisor is the owner of a resource's limit and stats ETS tables, therefore ensuring the ETS tables survive crashes elsewhere in the resource hierarchy.
The resource supervisor has two children: asidejob_worker_sup
that supervises the actual worker processes for a given resource, and a sidejob_resource_stats
server that aggregates statistics reported by the worker processes.