Loader.ExecutionStore (loader v0.6.0)

All entries in the ets tables "held" by this process should have the following format: TODO: add duration after mono completion time

{
  unique_ref, # via `make_ref/0`
  pid,
  monotomic_start_time,
  successful_monotomic_completion_time,
  wall_clock_start_time,
  successful_wall_clock_completion_time,
  total_tasks_to_execute,
  success_count,
  failure_count
}

The details of the ets table and the tuple format are an internal detail, and should not be relied upon by other modules.

The table is :public so that message passing is not necessary to allow other processes to write to the table, but we avoid race conditions since only atomic operations are used in this module.

Link to this section Summary

Link to this section Functions

Link to this function

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function

increment_failures(instance_name, scheduled_loader_ref)

Link to this function

increment_successes(instance_name, scheduled_loader_ref)

Link to this function

log_successful_termination(instance_name, scheduled_loader_ref)

Link to this function

new_scheduled_loader(instance_name, pid, total_task_count)

Link to this function

start_link(opts)

Link to this function

task_counts(instance_name, scheduled_loader_ref)