dashbitco / flow

Computational parallel flows on top of GenStage

Home Page:https://hexdocs.pm/flow

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

:no_proc errors when GenStage finishes quickly

simonmcconnell opened this issue · comments

Similar to #88.

Flow 1.2.0
GenStage 1.1.2
Elixir 1.13.3
Erlang 24.3

My Flow looks something like this, where my spec is only options that are for internal business.

Flow.from_specs([{Producer, spec}])
|> Flow.partition(key: {:key, :time})
|> Flow.reduce(fn -> [] end, fn apple, similar_apples ->
  ...
end)
|> Flow.run()

and the producer does this:

def start_link(opts) do
  GenStage.start_link(__MODULE__, opts, name: via(opts))
end

def init(opts) do
  ...
  if nothing_to_do, do: GenStage.async_info(pid, :terminate)
  {:producer, state}
end

def handle_info(:terminate, state) do
  {:stop, :shutdown, state}
end

Originally, I was returning :ignore in init/1 or {:stop, :normal, state} in handle_demand if there was nothing to do/it ran out of demand. All gave the same error.

I added a sleep, and it works.

Task.start(fn ->
  Process.sleep(5000)
  GenStage.async_info(pid, :terminate)
end)

Am I missing something or should this work without adding the stop delay?

16:21:05.456 [info] Elixir.Logacy.Alarms.Metrics.Producer: init {Logacy.Alarms.Metrics.Producer, :day, ~D[2022-04-01], "all", "CRITICAL-EVENT-HIGH-LOW"}
16:21:05.457 [debug] QUERY OK source="alarms" db=1.1ms idle=1699.6ms
SELECT a0."id", a0."ontime", a0."offtime", a0."duration", a0."acktime", a0."state", a0."setpoint", a0."value", a0."alarm_tag_id" FROM "alarms" AS a0 INNER JOIN "alarm_tags" AS a1 ON a1."id" = a0."alarm_tag_id" WHERE ((a0."ontime" >= $1) AND (a0."ontime" < $2)) AND (a1."category_name" = ANY($3)) ORDER BY a0."ontime", a0."alarm_tag_id", a0."state" LIMIT $4 [~U[2022-03-31 21:00:00.000000Z], ~U[2022-04-01 21:00:00.000000Z], ["CRITICAL", "HIGH", "LOW", "EVENT"], 1000]
16:21:05.457 [info] Elixir.Logacy.Alarms.Metrics.Producer: starting
16:21:05.457 [info] Child #Reference<0.428535878.2306867202.138389> of Supervisor #PID<0.2796.0> (Supervisor.Default) started
Pid: #PID<0.2797.0>
Start Call: Logacy.Alarms.Metrics.Producer.start_link(%{alarm_filters: [%Logacy.Alarms.AlarmFilter{__meta__: #Ecto.Schema.Metadata<:loaded, "alarm_filters">, filter: %{"condition" => "and", "rules" => [%{"field" => "area", "operator" => "eq", "value" => "72"}, %{"field" => "cluster", "operator" => "in", "value" => "C_KC39, C_KC40, C_KC44, C_KC64, C_KC69, C_KC72, C_KC73, C_KC74"}]}, filter_fn: #Function<0.27022423/1 in Logacy.Alarms.AlarmFilters.filter_to_fn/1>, id: 1, inserted_at: ~U[2022-01-26 05:10:48.000000Z], kind: :division, name: "Conveyors", slug: "conveyors", updated_at: ~U[2022-02-17 06:27:17.000000Z]}, %Logacy.Alarms.AlarmFilter{__meta__: #Ecto.Schema.Metadata<:loaded, "alarm_filters">, filter: %{"condition" => "or", "rules" => [%{"field" => "cluster", "operator" => "in", "value" => "C_KC47, C_KC48, C_KC49, C_KC50"}]}, filter_fn: #Function<0.27022423/1 in Logacy.Alarms.AlarmFilters.filter_to_fn/1>, id: 4, inserted_at: ~U[2022-01-30 03:41:19.000000Z], kind: :division, name: "Development", slug: "development", updated_at: ~U[2022-01-30 03:42:02.000000Z]}, %Logacy.Alarms.AlarmFilter{__meta__: #Ecto.Schema.Metadata<:loaded, "alarm_filters">, filter: %{"condition" => "or", "rules" => [%{"field" => "cluster", "operator" => "in", "value" => "C_KC80, C_KC81, C_KC82, C_KC83"}]}, filter_fn: #Function<0.27022423/1 in Logacy.Alarms.AlarmFilters.filter_to_fn/1>, id: 2, inserted_at: ~U[2022-01-26 07:46:44.000000Z], kind: :division, name: "Longwall", slug: "longwall", updated_at: ~U[2022-01-26 07:46:44.000000Z]}, %Logacy.Alarms.AlarmFilter{__meta__: #Ecto.Schema.Metadata<:loaded, "alarm_filters">, filter: %{"condition" => "or", "rules" => [%{"field" => "cluster", "operator" => "in", "value" => "C_KC51, C_KC54, C_KC46, C_KC45"}]}, filter_fn: #Function<0.27022423/1 in Logacy.Alarms.AlarmFilters.filter_to_fn/1>, id: 5, inserted_at: ~U[2022-01-30 03:42:34.000000Z], kind: :division, name: "Pumping", slug: "pumping", updated_at: ~U[2022-01-30 03:43:31.000000Z]}, %Logacy.Alarms.AlarmFilter{__meta__: #Ecto.Schema.Metadata<:loaded, "alarm_filters">, filter: %{"condition" => "or", "rules" => [%{"field" => "cluster", "operator" => "eq", "value" => "C_KC39"}]}, filter_fn: #Function<0.27022423/1 in Logacy.Alarms.AlarmFilters.filter_to_fn/1>, id: 3, inserted_at: ~U[2022-01-26 07:47:27.000000Z], kind: :division, name: "South Surface", slug: "south-surface", updated_at: ~U[2022-02-14 06:14:55.000000Z]}], calendar_mode: :day, category_names: ["CRITICAL", "HIGH", "LOW", "EVENT"], date: ~D[2022-04-01], division_slug: "all"})
Restart: :temporary
Shutdown: 5000
Type: :worker
16:21:05.458 [info] Elixir.Logacy.Alarms.Metrics.Producer: no events left, stopping
16:21:05.458 [info] Child #Reference<0.428535878.2306867202.138430> of Supervisor #PID<0.2796.0> (Supervisor.Default) started
Pid: #PID<0.2799.0>
Start Call: GenStage.start_link(Flow.MapReducer, {:producer_consumer, [subscribe_to: [{#PID<0.2797.0>, [partition: 0, cancel: :transient]}], dispatcher: {GenStage.PartitionDispatcher, [partitions: 0..11, hash: #Function<20.70741094/1 in Flow.Materialize.hash_by_key/2>]}], {0, 12}, #Function<2.15704490/3 in Flow.Window.Global.materialize/5>, #Function<33.70741094/0 in Flow.Materialize.mapper_ops/1>, #Function<34.70741094/4 in Flow.Materialize.mapper_ops/1>}, [])
Restart: :temporary
Shutdown: 5000
Type: :worker
16:21:05.458 [info] Elixir.Logacy.Alarms.Metrics.Producer: no events left, stopping
16:21:05.458 [info] Child #Reference<0.428535878.2306867202.138444> of Supervisor #PID<0.2796.0> (Supervisor.Default) started
Pid: #PID<0.2801.0>
Start Call: GenStage.start_link(Flow.MapReducer, {:producer_consumer, [subscribe_to: [{#PID<0.2797.0>, [partition: 1, cancel: :transient]}], dispatcher: {GenStage.PartitionDispatcher, [partitions: 0..11, hash: #Function<20.70741094/1 in Flow.Materialize.hash_by_key/2>]}], {1, 12}, #Function<2.15704490/3 in Flow.Window.Global.materialize/5>, #Function<33.70741094/0 in Flow.Materialize.mapper_ops/1>, #Function<34.70741094/4 in Flow.Materialize.mapper_ops/1>}, [])
Restart: :temporary
Shutdown: 5000
Type: :worker
16:21:05.458 [info] Elixir.Logacy.Alarms.Metrics.Producer: no events left, stopping
16:21:05.458 [info] Child #Reference<0.428535878.2306867202.138457> of Supervisor #PID<0.2796.0> (Supervisor.Default) started
Pid: #PID<0.2803.0>
Start Call: GenStage.start_link(Flow.MapReducer, {:producer_consumer, [subscribe_to: [{#PID<0.2797.0>, [partition: 2, cancel: :transient]}], dispatcher: {GenStage.PartitionDispatcher, [partitions: 0..11, hash: #Function<20.70741094/1 in Flow.Materialize.hash_by_key/2>]}], {2, 12}, #Function<2.15704490/3 in Flow.Window.Global.materialize/5>, #Function<33.70741094/0 in Flow.Materialize.mapper_ops/1>, #Function<34.70741094/4 in Flow.Materialize.mapper_ops/1>}, [])
Restart: :temporary
Shutdown: 5000
Type: :worker
16:21:05.458 [info] Elixir.Logacy.Alarms.Metrics.Producer: no events left, stopping
16:21:05.458 [info] Child #Reference<0.428535878.2306867202.138470> of Supervisor #PID<0.2796.0> (Supervisor.Default) started
Pid: #PID<0.2805.0>
Start Call: GenStage.start_link(Flow.MapReducer, {:producer_consumer, [subscribe_to: [{#PID<0.2797.0>, [partition: 3, cancel: :transient]}], dispatcher: {GenStage.PartitionDispatcher, [partitions: 0..11, hash: #Function<20.70741094/1 in Flow.Materialize.hash_by_key/2>]}], {3, 12}, #Function<2.15704490/3 in Flow.Window.Global.materialize/5>, #Function<33.70741094/0 in Flow.Materialize.mapper_ops/1>, #Function<34.70741094/4 in Flow.Materialize.mapper_ops/1>}, [])
Restart: :temporary
Shutdown: 5000
Type: :worker
16:21:05.458 [info] Elixir.Logacy.Alarms.Metrics.Producer: no events left, stopping
16:21:05.458 [info] Child #Reference<0.428535878.2306867202.138483> of Supervisor #PID<0.2796.0> (Supervisor.Default) started
Pid: #PID<0.2807.0>
Start Call: GenStage.start_link(Flow.MapReducer, {:producer_consumer, [subscribe_to: [{#PID<0.2797.0>, [partition: 4, cancel: :transient]}], dispatcher: {GenStage.PartitionDispatcher, [partitions: 0..11, hash: #Function<20.70741094/1 in Flow.Materialize.hash_by_key/2>]}], {4, 12}, #Function<2.15704490/3 in Flow.Window.Global.materialize/5>, #Function<33.70741094/0 in Flow.Materialize.mapper_ops/1>, #Function<34.70741094/4 in Flow.Materialize.mapper_ops/1>}, [])
Restart: :temporary
Shutdown: 5000
Type: :worker
16:21:05.458 [info] Elixir.Logacy.Alarms.Metrics.Producer: no events left, stopping
16:21:05.458 [info] Child #Reference<0.428535878.2306867204.137137> of Supervisor #PID<0.2796.0> (Supervisor.Default) started
Pid: #PID<0.2809.0>
Start Call: GenStage.start_link(Flow.MapReducer, {:producer_consumer, [subscribe_to: [{#PID<0.2797.0>, [partition: 5, cancel: :transient]}], dispatcher: {GenStage.PartitionDispatcher, [partitions: 0..11, hash: #Function<20.70741094/1 in Flow.Materialize.hash_by_key/2>]}], {5, 12}, #Function<2.15704490/3 in Flow.Window.Global.materialize/5>, #Function<33.70741094/0 in Flow.Materialize.mapper_ops/1>, #Function<34.70741094/4 in Flow.Materialize.mapper_ops/1>}, [])
Restart: :temporary
Shutdown: 5000
Type: :worker
16:21:05.459 [info] Elixir.Logacy.Alarms.Metrics.Producer: no events left, stopping
16:21:05.459 [info] Child #Reference<0.428535878.2306867204.137140> of Supervisor #PID<0.2796.0> (Supervisor.Default) started
Pid: #PID<0.2811.0>
Start Call: GenStage.start_link(Flow.MapReducer, {:producer_consumer, [subscribe_to: [{#PID<0.2797.0>, [partition: 6, cancel: :transient]}], dispatcher: {GenStage.PartitionDispatcher, [partitions: 0..11, hash: #Function<20.70741094/1 in Flow.Materialize.hash_by_key/2>]}], {6, 12}, #Function<2.15704490/3 in Flow.Window.Global.materialize/5>, #Function<33.70741094/0 in Flow.Materialize.mapper_ops/1>, #Function<34.70741094/4 in Flow.Materialize.mapper_ops/1>}, [])
Restart: :temporary
Shutdown: 5000
Type: :worker
16:21:05.459 [info] Elixir.Logacy.Alarms.Metrics.Producer: no events left, stopping
16:21:05.459 [info] Child #Reference<0.428535878.2306867204.137143> of Supervisor #PID<0.2796.0> (Supervisor.Default) started
Pid: #PID<0.2813.0>
Start Call: GenStage.start_link(Flow.MapReducer, {:producer_consumer, [subscribe_to: [{#PID<0.2797.0>, [partition: 7, cancel: :transient]}], dispatcher: {GenStage.PartitionDispatcher, [partitions: 0..11, hash: #Function<20.70741094/1 in Flow.Materialize.hash_by_key/2>]}], {7, 12}, #Function<2.15704490/3 in Flow.Window.Global.materialize/5>, #Function<33.70741094/0 in Flow.Materialize.mapper_ops/1>, #Function<34.70741094/4 in Flow.Materialize.mapper_ops/1>}, [])
Restart: :temporary
Shutdown: 5000
Type: :worker
16:21:05.459 [info] Elixir.Logacy.Alarms.Metrics.Producer: no events left, stopping
16:21:05.459 [info] Child #Reference<0.428535878.2306867204.137147> of Supervisor #PID<0.2796.0> (Supervisor.Default) started
Pid: #PID<0.2815.0>
Start Call: GenStage.start_link(Flow.MapReducer, {:producer_consumer, [subscribe_to: [{#PID<0.2797.0>, [partition: 8, cancel: :transient]}], dispatcher: {GenStage.PartitionDispatcher, [partitions: 0..11, hash: #Function<20.70741094/1 in Flow.Materialize.hash_by_key/2>]}], {8, 12}, #Function<2.15704490/3 in Flow.Window.Global.materialize/5>, #Function<33.70741094/0 in Flow.Materialize.mapper_ops/1>, #Function<34.70741094/4 in Flow.Materialize.mapper_ops/1>}, [])
Restart: :temporary
Shutdown: 5000
Type: :worker
16:21:05.459 [info] Child #Reference<0.428535878.2306867202.138540> of Supervisor #PID<0.2796.0> (Supervisor.Default) started
Pid: #PID<0.2816.0>
Start Call: GenStage.start_link(Flow.MapReducer, {:producer_consumer, [subscribe_to: [{#PID<0.2797.0>, [partition: 9, cancel: :transient]}], dispatcher: {GenStage.PartitionDispatcher, [partitions: 0..11, hash: #Function<20.70741094/1 in Flow.Materialize.hash_by_key/2>]}], {9, 12}, #Function<2.15704490/3 in Flow.Window.Global.materialize/5>, #Function<33.70741094/0 in Flow.Materialize.mapper_ops/1>, #Function<34.70741094/4 in Flow.Materialize.mapper_ops/1>}, [])
Restart: :temporary
Shutdown: 5000
Type: :worker
16:21:05.465 [info] Elixir.Logacy.Alarms.Metrics.Producer: no events left, stopping
16:21:05.465 [info] Child #Reference<0.428535878.2306867204.137172> of Supervisor #PID<0.2796.0> (Supervisor.Default) started
Pid: #PID<0.2818.0>
Start Call: GenStage.start_link(Flow.MapReducer, {:producer_consumer, [subscribe_to: [{#PID<0.2797.0>, [partition: 10, cancel: :transient]}], dispatcher: {GenStage.PartitionDispatcher, [partitions: 0..11, hash: #Function<20.70741094/1 in Flow.Materialize.hash_by_key/2>]}], {10, 12}, #Function<2.15704490/3 in Flow.Window.Global.materialize/5>, #Function<33.70741094/0 in Flow.Materialize.mapper_ops/1>, #Function<34.70741094/4 in Flow.Materialize.mapper_ops/1>}, [])
Restart: :temporary
Shutdown: 5000
Type: :worker
16:21:05.466 [info] Elixir.Logacy.Alarms.Metrics.Producer: shutdown
16:21:05.466 [info] Child #Reference<0.428535878.2306867204.137181> of Supervisor #PID<0.2796.0> (Supervisor.Default) started
Pid: #PID<0.2820.0>
Start Call: GenStage.start_link(Flow.MapReducer, {:producer_consumer, [subscribe_to: [{#PID<0.2797.0>, [partition: 11, cancel: :transient]}], dispatcher: {GenStage.PartitionDispatcher, [partitions: 0..11, hash: #Function<20.70741094/1 in Flow.Materialize.hash_by_key/2>]}], {11, 12}, #Function<2.15704490/3 in Flow.Window.Global.materialize/5>, #Function<33.70741094/0 in Flow.Materialize.mapper_ops/1>, #Function<34.70741094/4 in Flow.Materialize.mapper_ops/1>}, [])
Restart: :temporary
Shutdown: 5000
Type: :worker
16:21:05.466 [info] GenStage consumer #PID<0.2820.0> is stopping after receiving cancel from producer #PID<0.2797.0> with reason: :noproc

16:21:05.466 [error] GenServer #PID<0.2820.0> terminating
** (stop) no process: the process is not alive or there's no process currently associated with the given name, possibly because its application isn't started
Last message: {:DOWN, #Reference<0.428535878.2306867202.138662>, :process, #PID<0.2797.0>, :noproc}
State: {%{}, %{done?: true, producers: %{}, trigger: #Function<2.15704490/3 in Flow.Window.Global.materialize/5>}, {11, 12}, [], #Function<34.70741094/4 in Flow.Materialize.mapper_ops/1>}
16:21:05.466 [info] GenStage consumer #PID<0.2821.0> is stopping after receiving cancel from producer #PID<0.2799.0> with reason: :noproc

16:21:05.466 [info] Child #Reference<0.428535878.2306867204.137184> of Supervisor #PID<0.2796.0> (Supervisor.Default) started
Pid: #PID<0.2821.0>
Start Call: GenStage.start_link(Flow.MapReducer, {:producer_consumer, [subscribe_to: [{#PID<0.2799.0>, [partition: 0, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2801.0>, [partition: 0, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2803.0>, [partition: 0, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2805.0>, [partition: 0, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2807.0>, [partition: 0, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2809.0>, [partition: 0, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2811.0>, [partition: 0, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2813.0>, [partition: 0, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2815.0>, [partition: 0, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2816.0>, [partition: 0, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2818.0>, [partition: 0, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2820.0>, [partition: 0, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}], dispatcher: GenStage.DemandDispatcher], {0, 12}, #Function<2.15704490/3 in Flow.Window.Global.materialize/5>, #Function<2.50321837/0 in Logacy.Alarms.Metrics.Core.calc/1>, #Function<6.70741094/4 in Flow.Materialize.build_reducer/2>}, [])
Restart: :temporary
Shutdown: 5000
Type: :worker
16:21:05.466 [error] GenServer #PID<0.2821.0> terminating
** (stop) no process: the process is not alive or there's no process currently associated with the given name, possibly because its application isn't started
Last message: {:DOWN, #Reference<0.428535878.2306867204.137187>, :process, #PID<0.2799.0>, :noproc}
State: {%{#Reference<0.428535878.2306867204.137188> => nil, #Reference<0.428535878.2306867204.137189> => nil, #Reference<0.428535878.2306867204.137190> => nil, #Reference<0.428535878.2306867204.137191> => nil, #Reference<0.428535878.2306867204.137192> => nil, #Reference<0.428535878.2306867204.137193> => nil, #Reference<0.428535878.2306867204.137194> => nil, #Reference<0.428535878.2306867204.137195> => nil, #Reference<0.428535878.2306867204.137196> => nil, #Reference<0.428535878.2306867204.137197> => nil, #Reference<0.428535878.2306867204.137198> => nil}, %{done?: false, producers: %{#Reference<0.428535878.2306867204.137188> => #PID<0.2801.0>, #Reference<0.428535878.2306867204.137189> => #PID<0.2803.0>, #Reference<0.428535878.2306867204.137190> => #PID<0.2805.0>, #Reference<0.428535878.2306867204.137191> => #PID<0.2807.0>, #Reference<0.428535878.2306867204.137192> => #PID<0.2809.0>, #Reference<0.428535878.2306867204.137193> => #PID<0.2811.0>, #Reference<0.428535878.2306867204.137194> => #PID<0.2813.0>, #Reference<0.428535878.2306867204.137195> => #PID<0.2815.0>, #Reference<0.428535878.2306867204.137196> => #PID<0.2816.0>, #Reference<0.428535878.2306867204.137197> => #PID<0.2818.0>, #Reference<0.428535878.2306867204.137198> => #PID<0.2820.0>}, trigger: #Function<2.15704490/3 in Flow.Window.Global.materialize/5>}, {0, 12}, [], #Function<6.70741094/4 in Flow.Materialize.build_reducer/2>}
16:21:05.467 [info] GenStage consumer #PID<0.2822.0> is stopping after receiving cancel from producer #PID<0.2799.0> with reason: :noproc

16:21:05.467 [error] GenServer #PID<0.2822.0> terminating
** (stop) no process: the process is not alive or there's no process currently associated with the given name, possibly because its application isn't started
Last message: {:DOWN, #Reference<0.428535878.2306867204.137209>, :process, #PID<0.2799.0>, :noproc}
State: {%{#Reference<0.428535878.2306867204.137210> => nil, #Reference<0.428535878.2306867204.137211> => nil, #Reference<0.428535878.2306867204.137212> => nil, #Reference<0.428535878.2306867204.137213> => nil, #Reference<0.428535878.2306867204.137214> => nil, #Reference<0.428535878.2306867204.137215> => nil, #Reference<0.428535878.2306867204.137216> => nil, #Reference<0.428535878.2306867204.137217> => nil, #Reference<0.428535878.2306867204.137218> => nil, #Reference<0.428535878.2306867204.137219> => nil, #Reference<0.428535878.2306867204.137220> => nil}, %{done?: false, producers: %{#Reference<0.428535878.2306867204.137210> => #PID<0.2801.0>, #Reference<0.428535878.2306867204.137211> => #PID<0.2803.0>, #Reference<0.428535878.2306867204.137212> => #PID<0.2805.0>, #Reference<0.428535878.2306867204.137213> => #PID<0.2807.0>, #Reference<0.428535878.2306867204.137214> => #PID<0.2809.0>, #Reference<0.428535878.2306867204.137215> => #PID<0.2811.0>, #Reference<0.428535878.2306867204.137216> => #PID<0.2813.0>, #Reference<0.428535878.2306867204.137217> => #PID<0.2815.0>, #Reference<0.428535878.2306867204.137218> => #PID<0.2816.0>, #Reference<0.428535878.2306867204.137219> => #PID<0.2818.0>, #Reference<0.428535878.2306867204.137220> => #PID<0.2820.0>}, trigger: #Function<2.15704490/3 in Flow.Window.Global.materialize/5>}, {1, 12}, [], #Function<6.70741094/4 in Flow.Materialize.build_reducer/2>}
16:21:05.466 [error] Process #PID<0.2820.0> terminating
** (exit) no process: the process is not alive or there's no process currently associated with the given name, possibly because its application isn't started
    (stdlib 3.17.1) gen_server.erl:811: :gen_server.handle_common_reply/8
    (stdlib 3.17.1) proc_lib.erl:226: :proc_lib.init_p_do_apply/3
Initial Call: GenStage.init/1
Ancestors: [#PID<0.2796.0>, #PID<0.2795.0>, #PID<0.2430.0>, #PID<0.2426.0>, #PID<0.2425.0>, #PID<0.851.0>, Livebook.Runtime.ErlDist.NodeManager, #PID<0.849.0>]
Message Queue Length: 3
Messages: [{:"$gen_cast", {:"$info", :stop}}, {:"$gen_producer", {#PID<0.2821.0>, #Reference<0.428535878.2306867204.137198>}, {:subscribe, nil, [partition: 0, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}}, {:"$gen_producer", {#PID<0.2821.0>, #Reference<0.428535878.2306867204.137198>}, {:ask, 1000}}]
Links: [#PID<0.2796.0>]
Dictionary: [{11, []}, {10, []}, {9, []}, {8, []}, {7, []}, {6, []}, {5, []}, {4, []}, {3, []}, {2, []}, {1, []}, {0, []}]
Trapping Exits: true
Status: :running
Heap Size: 610
Stack Size: 29
Reductions: 4704
16:21:05.467 [error] Process #PID<0.2821.0> terminating
** (exit) no process: the process is not alive or there's no process currently associated with the given name, possibly because its application isn't started
    (stdlib 3.17.1) gen_server.erl:811: :gen_server.handle_common_reply/8
    (stdlib 3.17.1) proc_lib.erl:226: :proc_lib.init_p_do_apply/3
Initial Call: GenStage.init/1
Ancestors: [#PID<0.2796.0>, #PID<0.2795.0>, #PID<0.2430.0>, #PID<0.2426.0>, #PID<0.2425.0>, #PID<0.851.0>, Livebook.Runtime.ErlDist.NodeManager, #PID<0.849.0>]
Message Queue Length: 10
Messages: [{:DOWN, #Reference<0.428535878.2306867204.137188>, :process, #PID<0.2801.0>, :noproc}, {:DOWN, #Reference<0.428535878.2306867204.137189>, :process, #PID<0.2803.0>, :noproc}, {:DOWN, #Reference<0.428535878.2306867204.137190>, :process, #PID<0.2805.0>, :noproc}, {:DOWN, #Reference<0.428535878.2306867204.137191>, :process, #PID<0.2807.0>, :noproc}, {:DOWN, #Reference<0.428535878.2306867204.137192>, :process, #PID<0.2809.0>, :noproc}, {:DOWN, #Reference<0.428535878.2306867204.137193>, :process, #PID<0.2811.0>, :noproc}, {:DOWN, #Reference<0.428535878.2306867204.137194>, :process, #PID<0.2813.0>, :noproc}, {:DOWN, #Reference<0.428535878.2306867204.137195>, :process, #PID<0.2815.0>, :noproc}, {:DOWN, #Reference<0.428535878.2306867204.137196>, :process, #PID<0.2816.0>, :noproc}, {:DOWN, #Reference<0.428535878.2306867204.137197>, :process, #PID<0.2818.0>, :noproc}]
Links: [#PID<0.2796.0>]
Dictionary: []
Trapping Exits: true
Status: :running
Heap Size: 6772
Stack Size: 29
Reductions: 7540
16:21:05.467 [info] Child #Reference<0.428535878.2306867204.137206> of Supervisor #PID<0.2796.0> (Supervisor.Default) started
Pid: #PID<0.2822.0>
Start Call: GenStage.start_link(Flow.MapReducer, {:producer_consumer, [subscribe_to: [{#PID<0.2799.0>, [partition: 1, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2801.0>, [partition: 1, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2803.0>, [partition: 1, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2805.0>, [partition: 1, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2807.0>, [partition: 1, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2809.0>, [partition: 1, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2811.0>, [partition: 1, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2813.0>, [partition: 1, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2815.0>, [partition: 1, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2816.0>, [partition: 1, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2818.0>, [partition: 1, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2820.0>, [partition: 1, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}], dispatcher: GenStage.DemandDispatcher], {1, 12}, #Function<2.15704490/3 in Flow.Window.Global.materialize/5>, #Function<2.50321837/0 in Logacy.Alarms.Metrics.Core.calc/1>, #Function<6.70741094/4 in Flow.Materialize.build_reducer/2>}, [])
Restart: :temporary
Shutdown: 5000
Type: :worker
16:21:05.467 [error] Child #Reference<0.428535878.2306867204.137181> of Supervisor #PID<0.2796.0> (Supervisor.Default) terminated
** (exit) no process: the process is not alive or there's no process currently associated with the given name, possibly because its application isn't started
Pid: #PID<0.2820.0>
Start Call: GenStage.start_link/?
Restart: :temporary
Shutdown: 5000
Type: :worker
16:21:05.467 [error] Child #Reference<0.428535878.2306867204.137184> of Supervisor #PID<0.2796.0> (Supervisor.Default) terminated
** (exit) no process: the process is not alive or there's no process currently associated with the given name, possibly because its application isn't started
Pid: #PID<0.2821.0>
Start Call: GenStage.start_link/?
Restart: :temporary
Shutdown: 5000
Type: :worker
16:21:05.467 [error] Process #PID<0.2822.0> terminating
** (exit) no process: the process is not alive or there's no process currently associated with the given name, possibly because its application isn't started
    (stdlib 3.17.1) gen_server.erl:811: :gen_server.handle_common_reply/8
    (stdlib 3.17.1) proc_lib.erl:226: :proc_lib.init_p_do_apply/3
Initial Call: GenStage.init/1
Ancestors: [#PID<0.2796.0>, #PID<0.2795.0>, #PID<0.2430.0>, #PID<0.2426.0>, #PID<0.2425.0>, #PID<0.851.0>, Livebook.Runtime.ErlDist.NodeManager, #PID<0.849.0>]
Message Queue Length: 10
Messages: [{:DOWN, #Reference<0.428535878.2306867204.137210>, :process, #PID<0.2801.0>, :noproc}, {:DOWN, #Reference<0.428535878.2306867204.137211>, :process, #PID<0.2803.0>, :noproc}, {:DOWN, #Reference<0.428535878.2306867204.137212>, :process, #PID<0.2805.0>, :noproc}, {:DOWN, #Reference<0.428535878.2306867204.137213>, :process, #PID<0.2807.0>, :noproc}, {:DOWN, #Reference<0.428535878.2306867204.137214>, :process, #PID<0.2809.0>, :noproc}, {:DOWN, #Reference<0.428535878.2306867204.137215>, :process, #PID<0.2811.0>, :noproc}, {:DOWN, #Reference<0.428535878.2306867204.137216>, :process, #PID<0.2813.0>, :noproc}, {:DOWN, #Reference<0.428535878.2306867204.137217>, :process, #PID<0.2815.0>, :noproc}, {:DOWN, #Reference<0.428535878.2306867204.137218>, :process, #PID<0.2816.0>, :noproc}, {:DOWN, #Reference<0.428535878.2306867204.137219>, :process, #PID<0.2818.0>, :noproc}]
Links: [#PID<0.2796.0>]
Dictionary: []
Trapping Exits: true
Status: :running
Heap Size: 6772
Stack Size: 29
Reductions: 7540
16:21:05.467 [info] GenStage consumer #PID<0.2823.0> is stopping after receiving cancel from producer #PID<0.2799.0> with reason: :noproc

16:21:05.467 [info] Child #Reference<0.428535878.2306867204.137229> of Supervisor #PID<0.2796.0> (Supervisor.Default) started
Pid: #PID<0.2823.0>
Start Call: GenStage.start_link(Flow.MapReducer, {:producer_consumer, [subscribe_to: [{#PID<0.2799.0>, [partition: 2, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2801.0>, [partition: 2, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2803.0>, [partition: 2, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2805.0>, [partition: 2, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2807.0>, [partition: 2, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2809.0>, [partition: 2, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2811.0>, [partition: 2, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2813.0>, [partition: 2, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2815.0>, [partition: 2, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2816.0>, [partition: 2, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2818.0>, [partition: 2, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2820.0>, [partition: 2, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}], dispatcher: GenStage.DemandDispatcher], {2, 12}, #Function<2.15704490/3 in Flow.Window.Global.materialize/5>, #Function<2.50321837/0 in Logacy.Alarms.Metrics.Core.calc/1>, #Function<6.70741094/4 in Flow.Materialize.build_reducer/2>}, [])
Restart: :temporary
Shutdown: 5000
Type: :worker
16:21:05.467 [error] GenServer #PID<0.2823.0> terminating
** (stop) no process: the process is not alive or there's no process currently associated with the given name, possibly because its application isn't started
Last message: {:DOWN, #Reference<0.428535878.2306867201.161759>, :process, #PID<0.2799.0>, :noproc}
State: {%{#Reference<0.428535878.2306867201.161760> => nil, #Reference<0.428535878.2306867201.161761> => nil, #Reference<0.428535878.2306867201.161762> => nil, #Reference<0.428535878.2306867201.161763> => nil, #Reference<0.428535878.2306867201.161764> => nil, #Reference<0.428535878.2306867201.161765> => nil, #Reference<0.428535878.2306867201.161766> => nil, #Reference<0.428535878.2306867201.161767> => nil, #Reference<0.428535878.2306867201.161768> => nil, #Reference<0.428535878.2306867201.161769> => nil, #Reference<0.428535878.2306867201.161770> => nil}, %{done?: false, producers: %{#Reference<0.428535878.2306867201.161760> => #PID<0.2801.0>, #Reference<0.428535878.2306867201.161761> => #PID<0.2803.0>, #Reference<0.428535878.2306867201.161762> => #PID<0.2805.0>, #Reference<0.428535878.2306867201.161763> => #PID<0.2807.0>, #Reference<0.428535878.2306867201.161764> => #PID<0.2809.0>, #Reference<0.428535878.2306867201.161765> => #PID<0.2811.0>, #Reference<0.428535878.2306867201.161766> => #PID<0.2813.0>, #Reference<0.428535878.2306867201.161767> => #PID<0.2815.0>, #Reference<0.428535878.2306867201.161768> => #PID<0.2816.0>, #Reference<0.428535878.2306867201.161769> => #PID<0.2818.0>, #Reference<0.428535878.2306867201.161770> => #PID<0.2820.0>}, trigger: #Function<2.15704490/3 in Flow.Window.Global.materialize/5>}, {2, 12}, [], #Function<6.70741094/4 in Flow.Materialize.build_reducer/2>}
16:21:05.468 [error] Child #Reference<0.428535878.2306867204.137206> of Supervisor #PID<0.2796.0> (Supervisor.Default) terminated
** (exit) no process: the process is not alive or there's no process currently associated with the given name, possibly because its application isn't started
Pid: #PID<0.2822.0>
Start Call: GenStage.start_link/?
Restart: :temporary
Shutdown: 5000
Type: :worker
16:21:05.468 [info] GenStage consumer #PID<0.2824.0> is stopping after receiving cancel from producer #PID<0.2799.0> with reason: :noproc

16:21:05.468 [error] Process #PID<0.2823.0> terminating
** (exit) no process: the process is not alive or there's no process currently associated with the given name, possibly because its application isn't started
    (stdlib 3.17.1) gen_server.erl:811: :gen_server.handle_common_reply/8
    (stdlib 3.17.1) proc_lib.erl:226: :proc_lib.init_p_do_apply/3
Initial Call: GenStage.init/1
Ancestors: [#PID<0.2796.0>, #PID<0.2795.0>, #PID<0.2430.0>, #PID<0.2426.0>, #PID<0.2425.0>, #PID<0.851.0>, Livebook.Runtime.ErlDist.NodeManager, #PID<0.849.0>]
Message Queue Length: 11
Messages: [{:DOWN, #Reference<0.428535878.2306867201.161760>, :process, #PID<0.2801.0>, :noproc}, {:DOWN, #Reference<0.428535878.2306867201.161761>, :process, #PID<0.2803.0>, :noproc}, {:DOWN, #Reference<0.428535878.2306867201.161762>, :process, #PID<0.2805.0>, :noproc}, {:DOWN, #Reference<0.428535878.2306867201.161763>, :process, #PID<0.2807.0>, :noproc}, {:DOWN, #Reference<0.428535878.2306867201.161764>, :process, #PID<0.2809.0>, :noproc}, {:DOWN, #Reference<0.428535878.2306867201.161765>, :process, #PID<0.2811.0>, :noproc}, {:DOWN, #Reference<0.428535878.2306867201.161766>, :process, #PID<0.2813.0>, :noproc}, {:DOWN, #Reference<0.428535878.2306867201.161767>, :process, #PID<0.2815.0>, :noproc}, {:DOWN, #Reference<0.428535878.2306867201.161768>, :process, #PID<0.2816.0>, :noproc}, {:DOWN, #Reference<0.428535878.2306867201.161769>, :process, #PID<0.2818.0>, :noproc}, {:DOWN, #Reference<0.428535878.2306867201.161770>, :process, #PID<0.2820.0>, :noproc}]
Links: [#PID<0.2796.0>]
Dictionary: []
Trapping Exits: true
Status: :running
Heap Size: 6772
Stack Size: 29
Reductions: 7545
16:21:05.468 [info] Child #Reference<0.428535878.2306867204.137231> of Supervisor #PID<0.2796.0> (Supervisor.Default) started
Pid: #PID<0.2824.0>
Start Call: GenStage.start_link(Flow.MapReducer, {:producer_consumer, [subscribe_to: [{#PID<0.2799.0>, [partition: 3, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2801.0>, [partition: 3, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2803.0>, [partition: 3, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2805.0>, [partition: 3, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2807.0>, [partition: 3, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2809.0>, [partition: 3, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2811.0>, [partition: 3, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2813.0>, [partition: 3, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2815.0>, [partition: 3, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2816.0>, [partition: 3, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2818.0>, [partition: 3, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2820.0>, [partition: 3, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}], dispatcher: GenStage.DemandDispatcher], {3, 12}, #Function<2.15704490/3 in Flow.Window.Global.materialize/5>, #Function<2.50321837/0 in Logacy.Alarms.Metrics.Core.calc/1>, #Function<6.70741094/4 in Flow.Materialize.build_reducer/2>}, [])
Restart: :temporary
Shutdown: 5000
Type: :worker
16:21:05.475 [error] GenServer #PID<0.2824.0> terminating
** (stop) no process: the process is not alive or there's no process currently associated with the given name, possibly because its application isn't started
Last message: {:DOWN, #Reference<0.428535878.2306867201.161778>, :process, #PID<0.2799.0>, :noproc}
State: {%{#Reference<0.428535878.2306867201.161779> => nil, #Reference<0.428535878.2306867201.161780> => nil, #Reference<0.428535878.2306867201.161781> => nil, #Reference<0.428535878.2306867201.161782> => nil, #Reference<0.428535878.2306867201.161783> => nil, #Reference<0.428535878.2306867201.161784> => nil, #Reference<0.428535878.2306867201.161785> => nil, #Reference<0.428535878.2306867201.161786> => nil, #Reference<0.428535878.2306867201.161787> => nil, #Reference<0.428535878.2306867201.161788> => nil, #Reference<0.428535878.2306867201.161789> => nil}, %{done?: false, producers: %{#Reference<0.428535878.2306867201.161779> => #PID<0.2801.0>, #Reference<0.428535878.2306867201.161780> => #PID<0.2803.0>, #Reference<0.428535878.2306867201.161781> => #PID<0.2805.0>, #Reference<0.428535878.2306867201.161782> => #PID<0.2807.0>, #Reference<0.428535878.2306867201.161783> => #PID<0.2809.0>, #Reference<0.428535878.2306867201.161784> => #PID<0.2811.0>, #Reference<0.428535878.2306867201.161785> => #PID<0.2813.0>, #Reference<0.428535878.2306867201.161786> => #PID<0.2815.0>, #Reference<0.428535878.2306867201.161787> => #PID<0.2816.0>, #Reference<0.428535878.2306867201.161788> => #PID<0.2818.0>, #Reference<0.428535878.2306867201.161789> => #PID<0.2820.0>}, trigger: #Function<2.15704490/3 in Flow.Window.Global.materialize/5>}, {3, 12}, [], #Function<6.70741094/4 in Flow.Materialize.build_reducer/2>}
16:21:05.476 [error] Child #Reference<0.428535878.2306867204.137229> of Supervisor #PID<0.2796.0> (Supervisor.Default) terminated
** (exit) no process: the process is not alive or there's no process currently associated with the given name, possibly because its application isn't started
Pid: #PID<0.2823.0>
Start Call: GenStage.start_link/?
Restart: :temporary
Shutdown: 5000
Type: :worker
16:21:05.476 [error] Process #PID<0.2824.0> terminating
** (exit) no process: the process is not alive or there's no process currently associated with the given name, possibly because its application isn't started
    (stdlib 3.17.1) gen_server.erl:811: :gen_server.handle_common_reply/8
    (stdlib 3.17.1) proc_lib.erl:226: :proc_lib.init_p_do_apply/3
Initial Call: GenStage.init/1
Ancestors: [#PID<0.2796.0>, #PID<0.2795.0>, #PID<0.2430.0>, #PID<0.2426.0>, #PID<0.2425.0>, #PID<0.851.0>, Livebook.Runtime.ErlDist.NodeManager, #PID<0.849.0>]
Message Queue Length: 11
Messages: [{:DOWN, #Reference<0.428535878.2306867201.161779>, :process, #PID<0.2801.0>, :noproc}, {:DOWN, #Reference<0.428535878.2306867201.161780>, :process, #PID<0.2803.0>, :noproc}, {:DOWN, #Reference<0.428535878.2306867201.161781>, :process, #PID<0.2805.0>, :noproc}, {:DOWN, #Reference<0.428535878.2306867201.161782>, :process, #PID<0.2807.0>, :noproc}, {:DOWN, #Reference<0.428535878.2306867201.161783>, :process, #PID<0.2809.0>, :noproc}, {:DOWN, #Reference<0.428535878.2306867201.161784>, :process, #PID<0.2811.0>, :noproc}, {:DOWN, #Reference<0.428535878.2306867201.161785>, :process, #PID<0.2813.0>, :noproc}, {:DOWN, #Reference<0.428535878.2306867201.161786>, :process, #PID<0.2815.0>, :noproc}, {:DOWN, #Reference<0.428535878.2306867201.161787>, :process, #PID<0.2816.0>, :noproc}, {:DOWN, #Reference<0.428535878.2306867201.161788>, :process, #PID<0.2818.0>, :noproc}, {:DOWN, #Reference<0.428535878.2306867201.161789>, :process, #PID<0.2820.0>, :noproc}]
Links: [#PID<0.2796.0>]
Dictionary: []
Trapping Exits: true
Status: :running
Heap Size: 6772
Stack Size: 29
Reductions: 7575
16:21:05.477 [info] GenStage consumer #PID<0.2825.0> is stopping after receiving cancel from producer #PID<0.2799.0> with reason: :noproc

16:21:05.477 [error] GenServer #PID<0.2825.0> terminating
** (stop) no process: the process is not alive or there's no process currently associated with the given name, possibly because its application isn't started
Last message: {:DOWN, #Reference<0.428535878.2306867202.138809>, :process, #PID<0.2799.0>, :noproc}
State: {%{#Reference<0.428535878.2306867202.138810> => nil, #Reference<0.428535878.2306867202.138811> => nil, #Reference<0.428535878.2306867202.138812> => nil, #Reference<0.428535878.2306867202.138813> => nil, #Reference<0.428535878.2306867202.138814> => nil, #Reference<0.428535878.2306867202.138815> => nil, #Reference<0.428535878.2306867202.138816> => nil, #Reference<0.428535878.2306867202.138817> => nil, #Reference<0.428535878.2306867202.138818> => nil, #Reference<0.428535878.2306867202.138819> => nil, #Reference<0.428535878.2306867202.138820> => nil}, %{done?: false, producers: %{#Reference<0.428535878.2306867202.138810> => #PID<0.2801.0>, #Reference<0.428535878.2306867202.138811> => #PID<0.2803.0>, #Reference<0.428535878.2306867202.138812> => #PID<0.2805.0>, #Reference<0.428535878.2306867202.138813> => #PID<0.2807.0>, #Reference<0.428535878.2306867202.138814> => #PID<0.2809.0>, #Reference<0.428535878.2306867202.138815> => #PID<0.2811.0>, #Reference<0.428535878.2306867202.138816> => #PID<0.2813.0>, #Reference<0.428535878.2306867202.138817> => #PID<0.2815.0>, #Reference<0.428535878.2306867202.138818> => #PID<0.2816.0>, #Reference<0.428535878.2306867202.138819> => #PID<0.2818.0>, #Reference<0.428535878.2306867202.138820> => #PID<0.2820.0>}, trigger: #Function<2.15704490/3 in Flow.Window.Global.materialize/5>}, {4, 12}, [], #Function<6.70741094/4 in Flow.Materialize.build_reducer/2>}
16:21:05.476 [info] Child #Reference<0.428535878.2306867202.138798> of Supervisor #PID<0.2796.0> (Supervisor.Default) started
Pid: #PID<0.2825.0>
Start Call: GenStage.start_link(Flow.MapReducer, {:producer_consumer, [subscribe_to: [{#PID<0.2799.0>, [partition: 4, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2801.0>, [partition: 4, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2803.0>, [partition: 4, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2805.0>, [partition: 4, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2807.0>, [partition: 4, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2809.0>, [partition: 4, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2811.0>, [partition: 4, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2813.0>, [partition: 4, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2815.0>, [partition: 4, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2816.0>, [partition: 4, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2818.0>, [partition: 4, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2820.0>, [partition: 4, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}], dispatcher: GenStage.DemandDispatcher], {4, 12}, #Function<2.15704490/3 in Flow.Window.Global.materialize/5>, #Function<2.50321837/0 in Logacy.Alarms.Metrics.Core.calc/1>, #Function<6.70741094/4 in Flow.Materialize.build_reducer/2>}, [])
Restart: :temporary
Shutdown: 5000
Type: :worker
16:21:05.477 [error] Child #Reference<0.428535878.2306867204.137231> of Supervisor #PID<0.2796.0> (Supervisor.Default) terminated
** (exit) no process: the process is not alive or there's no process currently associated with the given name, possibly because its application isn't started
Pid: #PID<0.2824.0>
Start Call: GenStage.start_link/?
Restart: :temporary
Shutdown: 5000
Type: :worker
16:21:05.477 [info] GenStage consumer #PID<0.2826.0> is stopping after receiving cancel from producer #PID<0.2799.0> with reason: :noproc

16:21:05.477 [error] Process #PID<0.2825.0> terminating
** (exit) no process: the process is not alive or there's no process currently associated with the given name, possibly because its application isn't started
    (stdlib 3.17.1) gen_server.erl:811: :gen_server.handle_common_reply/8
    (stdlib 3.17.1) proc_lib.erl:226: :proc_lib.init_p_do_apply/3
Initial Call: GenStage.init/1
Ancestors: [#PID<0.2796.0>, #PID<0.2795.0>, #PID<0.2430.0>, #PID<0.2426.0>, #PID<0.2425.0>, #PID<0.851.0>, Livebook.Runtime.ErlDist.NodeManager, #PID<0.849.0>]
Message Queue Length: 11
Messages: [{:DOWN, #Reference<0.428535878.2306867202.138810>, :process, #PID<0.2801.0>, :noproc}, {:DOWN, #Reference<0.428535878.2306867202.138811>, :process, #PID<0.2803.0>, :noproc}, {:DOWN, #Reference<0.428535878.2306867202.138812>, :process, #PID<0.2805.0>, :noproc}, {:DOWN, #Reference<0.428535878.2306867202.138813>, :process, #PID<0.2807.0>, :noproc}, {:DOWN, #Reference<0.428535878.2306867202.138814>, :process, #PID<0.2809.0>, :noproc}, {:DOWN, #Reference<0.428535878.2306867202.138815>, :process, #PID<0.2811.0>, :noproc}, {:DOWN, #Reference<0.428535878.2306867202.138816>, :process, #PID<0.2813.0>, :noproc}, {:DOWN, #Reference<0.428535878.2306867202.138817>, :process, #PID<0.2815.0>, :noproc}, {:DOWN, #Reference<0.428535878.2306867202.138818>, :process, #PID<0.2816.0>, :noproc}, {:DOWN, #Reference<0.428535878.2306867202.138819>, :process, #PID<0.2818.0>, :noproc}, {:DOWN, #Reference<0.428535878.2306867202.138820>, :process, #PID<0.2820.0>, :noproc}]
Links: [#PID<0.2796.0>]
Dictionary: []
Trapping Exits: true
Status: :running
Heap Size: 6772
Stack Size: 29
Reductions: 7545
16:21:05.477 [error] GenServer #PID<0.2826.0> terminating
** (stop) no process: the process is not alive or there's no process currently associated with the given name, possibly because its application isn't started
Last message: {:DOWN, #Reference<0.428535878.2306867202.138832>, :process, #PID<0.2799.0>, :noproc}
State: {%{#Reference<0.428535878.2306867202.138833> => nil, #Reference<0.428535878.2306867202.138834> => nil, #Reference<0.428535878.2306867202.138835> => nil, #Reference<0.428535878.2306867202.138836> => nil, #Reference<0.428535878.2306867202.138837> => nil, #Reference<0.428535878.2306867202.138838> => nil, #Reference<0.428535878.2306867202.138839> => nil, #Reference<0.428535878.2306867202.138840> => nil, #Reference<0.428535878.2306867202.138841> => nil, #Reference<0.428535878.2306867202.138842> => nil, #Reference<0.428535878.2306867202.138843> => nil}, %{done?: false, producers: %{#Reference<0.428535878.2306867202.138833> => #PID<0.2801.0>, #Reference<0.428535878.2306867202.138834> => #PID<0.2803.0>, #Reference<0.428535878.2306867202.138835> => #PID<0.2805.0>, #Reference<0.428535878.2306867202.138836> => #PID<0.2807.0>, #Reference<0.428535878.2306867202.138837> => #PID<0.2809.0>, #Reference<0.428535878.2306867202.138838> => #PID<0.2811.0>, #Reference<0.428535878.2306867202.138839> => #PID<0.2813.0>, #Reference<0.428535878.2306867202.138840> => #PID<0.2815.0>, #Reference<0.428535878.2306867202.138841> => #PID<0.2816.0>, #Reference<0.428535878.2306867202.138842> => #PID<0.2818.0>, #Reference<0.428535878.2306867202.138843> => #PID<0.2820.0>}, trigger: #Function<2.15704490/3 in Flow.Window.Global.materialize/5>}, {5, 12}, [], #Function<6.70741094/4 in Flow.Materialize.build_reducer/2>}
16:21:05.477 [info] Child #Reference<0.428535878.2306867202.138829> of Supervisor #PID<0.2796.0> (Supervisor.Default) started
Pid: #PID<0.2826.0>
Start Call: GenStage.start_link(Flow.MapReducer, {:producer_consumer, [subscribe_to: [{#PID<0.2799.0>, [partition: 5, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2801.0>, [partition: 5, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2803.0>, [partition: 5, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2805.0>, [partition: 5, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2807.0>, [partition: 5, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2809.0>, [partition: 5, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2811.0>, [partition: 5, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2813.0>, [partition: 5, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2815.0>, [partition: 5, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2816.0>, [partition: 5, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2818.0>, [partition: 5, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2820.0>, [partition: 5, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}], dispatcher: GenStage.DemandDispatcher], {5, 12}, #Function<2.15704490/3 in Flow.Window.Global.materialize/5>, #Function<2.50321837/0 in Logacy.Alarms.Metrics.Core.calc/1>, #Function<6.70741094/4 in Flow.Materialize.build_reducer/2>}, [])
Restart: :temporary
Shutdown: 5000
Type: :worker
16:21:05.477 [error] Child #Reference<0.428535878.2306867202.138798> of Supervisor #PID<0.2796.0> (Supervisor.Default) terminated
** (exit) no process: the process is not alive or there's no process currently associated with the given name, possibly because its application isn't started
Pid: #PID<0.2825.0>
Start Call: GenStage.start_link/?
Restart: :temporary
Shutdown: 5000
Type: :worker
16:21:05.477 [info] GenStage consumer #PID<0.2827.0> is stopping after receiving cancel from producer #PID<0.2799.0> with reason: :noproc

16:21:05.477 [error] Process #PID<0.2826.0> terminating
** (exit) no process: the process is not alive or there's no process currently associated with the given name, possibly because its application isn't started
    (stdlib 3.17.1) gen_server.erl:811: :gen_server.handle_common_reply/8
    (stdlib 3.17.1) proc_lib.erl:226: :proc_lib.init_p_do_apply/3
Initial Call: GenStage.init/1
Ancestors: [#PID<0.2796.0>, #PID<0.2795.0>, #PID<0.2430.0>, #PID<0.2426.0>, #PID<0.2425.0>, #PID<0.851.0>, Livebook.Runtime.ErlDist.NodeManager, #PID<0.849.0>]
Message Queue Length: 11
Messages: [{:DOWN, #Reference<0.428535878.2306867202.138833>, :process, #PID<0.2801.0>, :noproc}, {:DOWN, #Reference<0.428535878.2306867202.138834>, :process, #PID<0.2803.0>, :noproc}, {:DOWN, #Reference<0.428535878.2306867202.138835>, :process, #PID<0.2805.0>, :noproc}, {:DOWN, #Reference<0.428535878.2306867202.138836>, :process, #PID<0.2807.0>, :noproc}, {:DOWN, #Reference<0.428535878.2306867202.138837>, :process, #PID<0.2809.0>, :noproc}, {:DOWN, #Reference<0.428535878.2306867202.138838>, :process, #PID<0.2811.0>, :noproc}, {:DOWN, #Reference<0.428535878.2306867202.138839>, :process, #PID<0.2813.0>, :noproc}, {:DOWN, #Reference<0.428535878.2306867202.138840>, :process, #PID<0.2815.0>, :noproc}, {:DOWN, #Reference<0.428535878.2306867202.138841>, :process, #PID<0.2816.0>, :noproc}, {:DOWN, #Reference<0.428535878.2306867202.138842>, :process, #PID<0.2818.0>, :noproc}, {:DOWN, #Reference<0.428535878.2306867202.138843>, :process, #PID<0.2820.0>, :noproc}]
Links: [#PID<0.2796.0>]
Dictionary: []
Trapping Exits: true
Status: :running
Heap Size: 6772
Stack Size: 29
Reductions: 7545
16:21:05.477 [error] GenServer #PID<0.2827.0> terminating
** (stop) no process: the process is not alive or there's no process currently associated with the given name, possibly because its application isn't started
Last message: {:DOWN, #Reference<0.428535878.2306867201.161814>, :process, #PID<0.2799.0>, :noproc}
State: {%{#Reference<0.428535878.2306867201.161815> => nil, #Reference<0.428535878.2306867201.161816> => nil, #Reference<0.428535878.2306867201.161817> => nil, #Reference<0.428535878.2306867201.161818> => nil, #Reference<0.428535878.2306867201.161819> => nil, #Reference<0.428535878.2306867201.161820> => nil, #Reference<0.428535878.2306867201.161821> => nil, #Reference<0.428535878.2306867201.161822> => nil, #Reference<0.428535878.2306867201.161823> => nil, #Reference<0.428535878.2306867201.161824> => nil, #Reference<0.428535878.2306867201.161825> => nil}, %{done?: false, producers: %{#Reference<0.428535878.2306867201.161815> => #PID<0.2801.0>, #Reference<0.428535878.2306867201.161816> => #PID<0.2803.0>, #Reference<0.428535878.2306867201.161817> => #PID<0.2805.0>, #Reference<0.428535878.2306867201.161818> => #PID<0.2807.0>, #Reference<0.428535878.2306867201.161819> => #PID<0.2809.0>, #Reference<0.428535878.2306867201.161820> => #PID<0.2811.0>, #Reference<0.428535878.2306867201.161821> => #PID<0.2813.0>, #Reference<0.428535878.2306867201.161822> => #PID<0.2815.0>, #Reference<0.428535878.2306867201.161823> => #PID<0.2816.0>, #Reference<0.428535878.2306867201.161824> => #PID<0.2818.0>, #Reference<0.428535878.2306867201.161825> => #PID<0.2820.0>}, trigger: #Function<2.15704490/3 in Flow.Window.Global.materialize/5>}, {6, 12}, [], #Function<6.70741094/4 in Flow.Materialize.build_reducer/2>}
16:21:05.477 [info] Child #Reference<0.428535878.2306867201.161811> of Supervisor #PID<0.2796.0> (Supervisor.Default) started
Pid: #PID<0.2827.0>
Start Call: GenStage.start_link(Flow.MapReducer, {:producer_consumer, [subscribe_to: [{#PID<0.2799.0>, [partition: 6, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2801.0>, [partition: 6, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2803.0>, [partition: 6, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2805.0>, [partition: 6, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2807.0>, [partition: 6, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2809.0>, [partition: 6, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2811.0>, [partition: 6, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2813.0>, [partition: 6, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2815.0>, [partition: 6, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2816.0>, [partition: 6, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2818.0>, [partition: 6, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2820.0>, [partition: 6, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}], dispatcher: GenStage.DemandDispatcher], {6, 12}, #Function<2.15704490/3 in Flow.Window.Global.materialize/5>, #Function<2.50321837/0 in Logacy.Alarms.Metrics.Core.calc/1>, #Function<6.70741094/4 in Flow.Materialize.build_reducer/2>}, [])
Restart: :temporary
Shutdown: 5000
Type: :worker
16:21:05.478 [error] Child #Reference<0.428535878.2306867202.138829> of Supervisor #PID<0.2796.0> (Supervisor.Default) terminated
** (exit) no process: the process is not alive or there's no process currently associated with the given name, possibly because its application isn't started
Pid: #PID<0.2826.0>
Start Call: GenStage.start_link/?
Restart: :temporary
Shutdown: 5000
Type: :worker
16:21:05.478 [info] GenStage consumer #PID<0.2828.0> is stopping after receiving cancel from producer #PID<0.2799.0> with reason: :noproc

16:21:05.478 [error] Process #PID<0.2827.0> terminating
** (exit) no process: the process is not alive or there's no process currently associated with the given name, possibly because its application isn't started
    (stdlib 3.17.1) gen_server.erl:811: :gen_server.handle_common_reply/8
    (stdlib 3.17.1) proc_lib.erl:226: :proc_lib.init_p_do_apply/3
Initial Call: GenStage.init/1
Ancestors: [#PID<0.2796.0>, #PID<0.2795.0>, #PID<0.2430.0>, #PID<0.2426.0>, #PID<0.2425.0>, #PID<0.851.0>, Livebook.Runtime.ErlDist.NodeManager, #PID<0.849.0>]
Message Queue Length: 11
Messages: [{:DOWN, #Reference<0.428535878.2306867201.161815>, :process, #PID<0.2801.0>, :noproc}, {:DOWN, #Reference<0.428535878.2306867201.161816>, :process, #PID<0.2803.0>, :noproc}, {:DOWN, #Reference<0.428535878.2306867201.161817>, :process, #PID<0.2805.0>, :noproc}, {:DOWN, #Reference<0.428535878.2306867201.161818>, :process, #PID<0.2807.0>, :noproc}, {:DOWN, #Reference<0.428535878.2306867201.161819>, :process, #PID<0.2809.0>, :noproc}, {:DOWN, #Reference<0.428535878.2306867201.161820>, :process, #PID<0.2811.0>, :noproc}, {:DOWN, #Reference<0.428535878.2306867201.161821>, :process, #PID<0.2813.0>, :noproc}, {:DOWN, #Reference<0.428535878.2306867201.161822>, :process, #PID<0.2815.0>, :noproc}, {:DOWN, #Reference<0.428535878.2306867201.161823>, :process, #PID<0.2816.0>, :noproc}, {:DOWN, #Reference<0.428535878.2306867201.161824>, :process, #PID<0.2818.0>, :noproc}, {:DOWN, #Reference<0.428535878.2306867201.161825>, :process, #PID<0.2820.0>, :noproc}]
Links: [#PID<0.2796.0>]
Dictionary: []
Trapping Exits: true
Status: :running
Heap Size: 6772
Stack Size: 29
Reductions: 7545
16:21:05.478 [error] GenServer #PID<0.2828.0> terminating
** (stop) no process: the process is not alive or there's no process currently associated with the given name, possibly because its application isn't started
Last message: {:DOWN, #Reference<0.428535878.2306867201.161837>, :process, #PID<0.2799.0>, :noproc}
State: {%{#Reference<0.428535878.2306867201.161838> => nil, #Reference<0.428535878.2306867201.161839> => nil, #Reference<0.428535878.2306867201.161840> => nil, #Reference<0.428535878.2306867201.161841> => nil, #Reference<0.428535878.2306867201.161842> => nil, #Reference<0.428535878.2306867201.161843> => nil, #Reference<0.428535878.2306867201.161844> => nil, #Reference<0.428535878.2306867201.161845> => nil, #Reference<0.428535878.2306867201.161846> => nil, #Reference<0.428535878.2306867201.161847> => nil, #Reference<0.428535878.2306867201.161848> => nil}, %{done?: false, producers: %{#Reference<0.428535878.2306867201.161838> => #PID<0.2801.0>, #Reference<0.428535878.2306867201.161839> => #PID<0.2803.0>, #Reference<0.428535878.2306867201.161840> => #PID<0.2805.0>, #Reference<0.428535878.2306867201.161841> => #PID<0.2807.0>, #Reference<0.428535878.2306867201.161842> => #PID<0.2809.0>, #Reference<0.428535878.2306867201.161843> => #PID<0.2811.0>, #Reference<0.428535878.2306867201.161844> => #PID<0.2813.0>, #Reference<0.428535878.2306867201.161845> => #PID<0.2815.0>, #Reference<0.428535878.2306867201.161846> => #PID<0.2816.0>, #Reference<0.428535878.2306867201.161847> => #PID<0.2818.0>, #Reference<0.428535878.2306867201.161848> => #PID<0.2820.0>}, trigger: #Function<2.15704490/3 in Flow.Window.Global.materialize/5>}, {7, 12}, [], #Function<6.70741094/4 in Flow.Materialize.build_reducer/2>}
16:21:05.478 [info] Child #Reference<0.428535878.2306867201.161834> of Supervisor #PID<0.2796.0> (Supervisor.Default) started
Pid: #PID<0.2828.0>
Start Call: GenStage.start_link(Flow.MapReducer, {:producer_consumer, [subscribe_to: [{#PID<0.2799.0>, [partition: 7, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2801.0>, [partition: 7, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2803.0>, [partition: 7, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2805.0>, [partition: 7, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2807.0>, [partition: 7, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2809.0>, [partition: 7, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2811.0>, [partition: 7, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2813.0>, [partition: 7, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2815.0>, [partition: 7, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2816.0>, [partition: 7, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2818.0>, [partition: 7, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2820.0>, [partition: 7, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}], dispatcher: GenStage.DemandDispatcher], {7, 12}, #Function<2.15704490/3 in Flow.Window.Global.materialize/5>, #Function<2.50321837/0 in Logacy.Alarms.Metrics.Core.calc/1>, #Function<6.70741094/4 in Flow.Materialize.build_reducer/2>}, [])
Restart: :temporary
Shutdown: 5000
Type: :worker
16:21:05.478 [error] Child #Reference<0.428535878.2306867201.161811> of Supervisor #PID<0.2796.0> (Supervisor.Default) terminated
** (exit) no process: the process is not alive or there's no process currently associated with the given name, possibly because its application isn't started
Pid: #PID<0.2827.0>
Start Call: GenStage.start_link/?
Restart: :temporary
Shutdown: 5000
Type: :worker
16:21:05.478 [error] Process #PID<0.2828.0> terminating
** (exit) no process: the process is not alive or there's no process currently associated with the given name, possibly because its application isn't started
    (stdlib 3.17.1) gen_server.erl:811: :gen_server.handle_common_reply/8
    (stdlib 3.17.1) proc_lib.erl:226: :proc_lib.init_p_do_apply/3
Initial Call: GenStage.init/1
Ancestors: [#PID<0.2796.0>, #PID<0.2795.0>, #PID<0.2430.0>, #PID<0.2426.0>, #PID<0.2425.0>, #PID<0.851.0>, Livebook.Runtime.ErlDist.NodeManager, #PID<0.849.0>]
Message Queue Length: 11
Messages: [{:DOWN, #Reference<0.428535878.2306867201.161838>, :process, #PID<0.2801.0>, :noproc}, {:DOWN, #Reference<0.428535878.2306867201.161839>, :process, #PID<0.2803.0>, :noproc}, {:DOWN, #Reference<0.428535878.2306867201.161840>, :process, #PID<0.2805.0>, :noproc}, {:DOWN, #Reference<0.428535878.2306867201.161841>, :process, #PID<0.2807.0>, :noproc}, {:DOWN, #Reference<0.428535878.2306867201.161842>, :process, #PID<0.2809.0>, :noproc}, {:DOWN, #Reference<0.428535878.2306867201.161843>, :process, #PID<0.2811.0>, :noproc}, {:DOWN, #Reference<0.428535878.2306867201.161844>, :process, #PID<0.2813.0>, :noproc}, {:DOWN, #Reference<0.428535878.2306867201.161845>, :process, #PID<0.2815.0>, :noproc}, {:DOWN, #Reference<0.428535878.2306867201.161846>, :process, #PID<0.2816.0>, :noproc}, {:DOWN, #Reference<0.428535878.2306867201.161847>, :process, #PID<0.2818.0>, :noproc}, {:DOWN, #Reference<0.428535878.2306867201.161848>, :process, #PID<0.2820.0>, :noproc}]
Links: [#PID<0.2796.0>]
Dictionary: []
Trapping Exits: true
Status: :running
Heap Size: 6772
Stack Size: 29
Reductions: 7545
16:21:05.486 [info] GenStage consumer #PID<0.2829.0> is stopping after receiving cancel from producer #PID<0.2799.0> with reason: :noproc

16:21:05.486 [info] Child #Reference<0.428535878.2306867201.161857> of Supervisor #PID<0.2796.0> (Supervisor.Default) started
Pid: #PID<0.2829.0>
Start Call: GenStage.start_link(Flow.MapReducer, {:producer_consumer, [subscribe_to: [{#PID<0.2799.0>, [partition: 8, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2801.0>, [partition: 8, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2803.0>, [partition: 8, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2805.0>, [partition: 8, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2807.0>, [partition: 8, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2809.0>, [partition: 8, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2811.0>, [partition: 8, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2813.0>, [partition: 8, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2815.0>, [partition: 8, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2816.0>, [partition: 8, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2818.0>, [partition: 8, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2820.0>, [partition: 8, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}], dispatcher: GenStage.DemandDispatcher], {8, 12}, #Function<2.15704490/3 in Flow.Window.Global.materialize/5>, #Function<2.50321837/0 in Logacy.Alarms.Metrics.Core.calc/1>, #Function<6.70741094/4 in Flow.Materialize.build_reducer/2>}, [])
Restart: :temporary
Shutdown: 5000
Type: :worker
16:21:05.486 [error] Child #Reference<0.428535878.2306867201.161834> of Supervisor #PID<0.2796.0> (Supervisor.Default) terminated
** (exit) no process: the process is not alive or there's no process currently associated with the given name, possibly because its application isn't started
Pid: #PID<0.2828.0>
Start Call: GenStage.start_link/?
Restart: :temporary
Shutdown: 5000
Type: :worker
16:21:05.487 [error] GenServer #PID<0.2829.0> terminating
** (stop) no process: the process is not alive or there's no process currently associated with the given name, possibly because its application isn't started
Last message: {:DOWN, #Reference<0.428535878.2306867204.137272>, :process, #PID<0.2799.0>, :noproc}
State: {%{#Reference<0.428535878.2306867204.137273> => nil, #Reference<0.428535878.2306867204.137274> => nil, #Reference<0.428535878.2306867204.137275> => nil, #Reference<0.428535878.2306867204.137276> => nil, #Reference<0.428535878.2306867204.137277> => nil, #Reference<0.428535878.2306867204.137278> => nil, #Reference<0.428535878.2306867204.137279> => nil, #Reference<0.428535878.2306867204.137280> => nil, #Reference<0.428535878.2306867204.137281> => nil, #Reference<0.428535878.2306867204.137282> => nil, #Reference<0.428535878.2306867204.137283> => nil}, %{done?: false, producers: %{#Reference<0.428535878.2306867204.137273> => #PID<0.2801.0>, #Reference<0.428535878.2306867204.137274> => #PID<0.2803.0>, #Reference<0.428535878.2306867204.137275> => #PID<0.2805.0>, #Reference<0.428535878.2306867204.137276> => #PID<0.2807.0>, #Reference<0.428535878.2306867204.137277> => #PID<0.2809.0>, #Reference<0.428535878.2306867204.137278> => #PID<0.2811.0>, #Reference<0.428535878.2306867204.137279> => #PID<0.2813.0>, #Reference<0.428535878.2306867204.137280> => #PID<0.2815.0>, #Reference<0.428535878.2306867204.137281> => #PID<0.2816.0>, #Reference<0.428535878.2306867204.137282> => #PID<0.2818.0>, #Reference<0.428535878.2306867204.137283> => #PID<0.2820.0>}, trigger: #Function<2.15704490/3 in Flow.Window.Global.materialize/5>}, {8, 12}, [], #Function<6.70741094/4 in Flow.Materialize.build_reducer/2>}
16:21:05.487 [error] Process #PID<0.2829.0> terminating
** (exit) no process: the process is not alive or there's no process currently associated with the given name, possibly because its application isn't started
    (stdlib 3.17.1) gen_server.erl:811: :gen_server.handle_common_reply/8
    (stdlib 3.17.1) proc_lib.erl:226: :proc_lib.init_p_do_apply/3
Initial Call: GenStage.init/1
Ancestors: [#PID<0.2796.0>, #PID<0.2795.0>, #PID<0.2430.0>, #PID<0.2426.0>, #PID<0.2425.0>, #PID<0.851.0>, Livebook.Runtime.ErlDist.NodeManager, #PID<0.849.0>]
Message Queue Length: 11
Messages: [{:DOWN, #Reference<0.428535878.2306867204.137273>, :process, #PID<0.2801.0>, :noproc}, {:DOWN, #Reference<0.428535878.2306867204.137274>, :process, #PID<0.2803.0>, :noproc}, {:DOWN, #Reference<0.428535878.2306867204.137275>, :process, #PID<0.2805.0>, :noproc}, {:DOWN, #Reference<0.428535878.2306867204.137276>, :process, #PID<0.2807.0>, :noproc}, {:DOWN, #Reference<0.428535878.2306867204.137277>, :process, #PID<0.2809.0>, :noproc}, {:DOWN, #Reference<0.428535878.2306867204.137278>, :process, #PID<0.2811.0>, :noproc}, {:DOWN, #Reference<0.428535878.2306867204.137279>, :process, #PID<0.2813.0>, :noproc}, {:DOWN, #Reference<0.428535878.2306867204.137280>, :process, #PID<0.2815.0>, :noproc}, {:DOWN, #Reference<0.428535878.2306867204.137281>, :process, #PID<0.2816.0>, :noproc}, {:DOWN, #Reference<0.428535878.2306867204.137282>, :process, #PID<0.2818.0>, :noproc}, {:DOWN, #Reference<0.428535878.2306867204.137283>, :process, #PID<0.2820.0>, :noproc}]
Links: [#PID<0.2796.0>]
Dictionary: []
Trapping Exits: true
Status: :running
Heap Size: 6772
Stack Size: 29
Reductions: 7559
16:21:05.488 [info] GenStage consumer #PID<0.2830.0> is stopping after receiving cancel from producer #PID<0.2799.0> with reason: :noproc

16:21:05.488 [error] GenServer #PID<0.2830.0> terminating
** (stop) no process: the process is not alive or there's no process currently associated with the given name, possibly because its application isn't started
Last message: {:DOWN, #Reference<0.428535878.2306867204.137300>, :process, #PID<0.2799.0>, :noproc}
State: {%{#Reference<0.428535878.2306867204.137301> => nil, #Reference<0.428535878.2306867204.137302> => nil, #Reference<0.428535878.2306867204.137303> => nil, #Reference<0.428535878.2306867204.137304> => nil, #Reference<0.428535878.2306867204.137305> => nil, #Reference<0.428535878.2306867204.137306> => nil, #Reference<0.428535878.2306867204.137307> => nil, #Reference<0.428535878.2306867204.137308> => nil, #Reference<0.428535878.2306867204.137309> => nil, #Reference<0.428535878.2306867204.137310> => nil, #Reference<0.428535878.2306867204.137311> => nil}, %{done?: false, producers: %{#Reference<0.428535878.2306867204.137301> => #PID<0.2801.0>, #Reference<0.428535878.2306867204.137302> => #PID<0.2803.0>, #Reference<0.428535878.2306867204.137303> => #PID<0.2805.0>, #Reference<0.428535878.2306867204.137304> => #PID<0.2807.0>, #Reference<0.428535878.2306867204.137305> => #PID<0.2809.0>, #Reference<0.428535878.2306867204.137306> => #PID<0.2811.0>, #Reference<0.428535878.2306867204.137307> => #PID<0.2813.0>, #Reference<0.428535878.2306867204.137308> => #PID<0.2815.0>, #Reference<0.428535878.2306867204.137309> => #PID<0.2816.0>, #Reference<0.428535878.2306867204.137310> => #PID<0.2818.0>, #Reference<0.428535878.2306867204.137311> => #PID<0.2820.0>}, trigger: #Function<2.15704490/3 in Flow.Window.Global.materialize/5>}, {9, 12}, [], #Function<6.70741094/4 in Flow.Materialize.build_reducer/2>}
16:21:05.488 [info] Child #Reference<0.428535878.2306867201.161859> of Supervisor #PID<0.2796.0> (Supervisor.Default) started
Pid: #PID<0.2830.0>
Start Call: GenStage.start_link(Flow.MapReducer, {:producer_consumer, [subscribe_to: [{#PID<0.2799.0>, [partition: 9, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2801.0>, [partition: 9, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2803.0>, [partition: 9, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2805.0>, [partition: 9, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2807.0>, [partition: 9, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2809.0>, [partition: 9, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2811.0>, [partition: 9, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2813.0>, [partition: 9, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2815.0>, [partition: 9, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2816.0>, [partition: 9, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2818.0>, [partition: 9, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2820.0>, [partition: 9, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}], dispatcher: GenStage.DemandDispatcher], {9, 12}, #Function<2.15704490/3 in Flow.Window.Global.materialize/5>, #Function<2.50321837/0 in Logacy.Alarms.Metrics.Core.calc/1>, #Function<6.70741094/4 in Flow.Materialize.build_reducer/2>}, [])
Restart: :temporary
Shutdown: 5000
Type: :worker
16:21:05.488 [error] Child #Reference<0.428535878.2306867201.161857> of Supervisor #PID<0.2796.0> (Supervisor.Default) terminated
** (exit) no process: the process is not alive or there's no process currently associated with the given name, possibly because its application isn't started
Pid: #PID<0.2829.0>
Start Call: GenStage.start_link/?
Restart: :temporary
Shutdown: 5000
Type: :worker
16:21:05.488 [info] GenStage consumer #PID<0.2831.0> is stopping after receiving cancel from producer #PID<0.2799.0> with reason: :noproc

16:21:05.488 [error] Process #PID<0.2830.0> terminating
** (exit) no process: the process is not alive or there's no process currently associated with the given name, possibly because its application isn't started
    (stdlib 3.17.1) gen_server.erl:811: :gen_server.handle_common_reply/8
    (stdlib 3.17.1) proc_lib.erl:226: :proc_lib.init_p_do_apply/3
Initial Call: GenStage.init/1
Ancestors: [#PID<0.2796.0>, #PID<0.2795.0>, #PID<0.2430.0>, #PID<0.2426.0>, #PID<0.2425.0>, #PID<0.851.0>, Livebook.Runtime.ErlDist.NodeManager, #PID<0.849.0>]
Message Queue Length: 11
Messages: [{:DOWN, #Reference<0.428535878.2306867204.137301>, :process, #PID<0.2801.0>, :noproc}, {:DOWN, #Reference<0.428535878.2306867204.137302>, :process, #PID<0.2803.0>, :noproc}, {:DOWN, #Reference<0.428535878.2306867204.137303>, :process, #PID<0.2805.0>, :noproc}, {:DOWN, #Reference<0.428535878.2306867204.137304>, :process, #PID<0.2807.0>, :noproc}, {:DOWN, #Reference<0.428535878.2306867204.137305>, :process, #PID<0.2809.0>, :noproc}, {:DOWN, #Reference<0.428535878.2306867204.137306>, :process, #PID<0.2811.0>, :noproc}, {:DOWN, #Reference<0.428535878.2306867204.137307>, :process, #PID<0.2813.0>, :noproc}, {:DOWN, #Reference<0.428535878.2306867204.137308>, :process, #PID<0.2815.0>, :noproc}, {:DOWN, #Reference<0.428535878.2306867204.137309>, :process, #PID<0.2816.0>, :noproc}, {:DOWN, #Reference<0.428535878.2306867204.137310>, :process, #PID<0.2818.0>, :noproc}, {:DOWN, #Reference<0.428535878.2306867204.137311>, :process, #PID<0.2820.0>, :noproc}]
Links: [#PID<0.2796.0>]
Dictionary: []
Trapping Exits: true
Status: :running
Heap Size: 6772
Stack Size: 29
Reductions: 7545
16:21:05.488 [error] GenServer #PID<0.2831.0> terminating
** (stop) no process: the process is not alive or there's no process currently associated with the given name, possibly because its application isn't started
Last message: {:DOWN, #Reference<0.428535878.2306867202.138959>, :process, #PID<0.2799.0>, :noproc}
State: {%{#Reference<0.428535878.2306867202.138960> => nil, #Reference<0.428535878.2306867202.138961> => nil, #Reference<0.428535878.2306867202.138962> => nil, #Reference<0.428535878.2306867202.138963> => nil, #Reference<0.428535878.2306867202.138964> => nil, #Reference<0.428535878.2306867202.138965> => nil, #Reference<0.428535878.2306867202.138966> => nil, #Reference<0.428535878.2306867202.138967> => nil, #Reference<0.428535878.2306867202.138968> => nil, #Reference<0.428535878.2306867202.138969> => nil, #Reference<0.428535878.2306867202.138970> => nil}, %{done?: false, producers: %{#Reference<0.428535878.2306867202.138960> => #PID<0.2801.0>, #Reference<0.428535878.2306867202.138961> => #PID<0.2803.0>, #Reference<0.428535878.2306867202.138962> => #PID<0.2805.0>, #Reference<0.428535878.2306867202.138963> => #PID<0.2807.0>, #Reference<0.428535878.2306867202.138964> => #PID<0.2809.0>, #Reference<0.428535878.2306867202.138965> => #PID<0.2811.0>, #Reference<0.428535878.2306867202.138966> => #PID<0.2813.0>, #Reference<0.428535878.2306867202.138967> => #PID<0.2815.0>, #Reference<0.428535878.2306867202.138968> => #PID<0.2816.0>, #Reference<0.428535878.2306867202.138969> => #PID<0.2818.0>, #Reference<0.428535878.2306867202.138970> => #PID<0.2820.0>}, trigger: #Function<2.15704490/3 in Flow.Window.Global.materialize/5>}, {10, 12}, [], #Function<6.70741094/4 in Flow.Materialize.build_reducer/2>}
16:21:05.488 [info] Child #Reference<0.428535878.2306867201.161861> of Supervisor #PID<0.2796.0> (Supervisor.Default) started
Pid: #PID<0.2831.0>
Start Call: GenStage.start_link(Flow.MapReducer, {:producer_consumer, [subscribe_to: [{#PID<0.2799.0>, [partition: 10, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2801.0>, [partition: 10, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2803.0>, [partition: 10, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2805.0>, [partition: 10, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2807.0>, [partition: 10, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2809.0>, [partition: 10, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2811.0>, [partition: 10, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2813.0>, [partition: 10, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2815.0>, [partition: 10, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2816.0>, [partition: 10, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2818.0>, [partition: 10, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2820.0>, [partition: 10, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}], dispatcher: GenStage.DemandDispatcher], {10, 12}, #Function<2.15704490/3 in Flow.Window.Global.materialize/5>, #Function<2.50321837/0 in Logacy.Alarms.Metrics.Core.calc/1>, #Function<6.70741094/4 in Flow.Materialize.build_reducer/2>}, [])
Restart: :temporary
Shutdown: 5000
Type: :worker
16:21:05.488 [error] Child #Reference<0.428535878.2306867201.161859> of Supervisor #PID<0.2796.0> (Supervisor.Default) terminated
** (exit) no process: the process is not alive or there's no process currently associated with the given name, possibly because its application isn't started
Pid: #PID<0.2830.0>
Start Call: GenStage.start_link/?
Restart: :temporary
Shutdown: 5000
Type: :worker
16:21:05.489 [info] GenStage consumer #PID<0.2832.0> is stopping after receiving cancel from producer #PID<0.2799.0> with reason: :noproc

16:21:05.488 [error] Process #PID<0.2831.0> terminating
** (exit) no process: the process is not alive or there's no process currently associated with the given name, possibly because its application isn't started
    (stdlib 3.17.1) gen_server.erl:811: :gen_server.handle_common_reply/8
    (stdlib 3.17.1) proc_lib.erl:226: :proc_lib.init_p_do_apply/3
Initial Call: GenStage.init/1
Ancestors: [#PID<0.2796.0>, #PID<0.2795.0>, #PID<0.2430.0>, #PID<0.2426.0>, #PID<0.2425.0>, #PID<0.851.0>, Livebook.Runtime.ErlDist.NodeManager, #PID<0.849.0>]
Message Queue Length: 11
Messages: [{:DOWN, #Reference<0.428535878.2306867202.138960>, :process, #PID<0.2801.0>, :noproc}, {:DOWN, #Reference<0.428535878.2306867202.138961>, :process, #PID<0.2803.0>, :noproc}, {:DOWN, #Reference<0.428535878.2306867202.138962>, :process, #PID<0.2805.0>, :noproc}, {:DOWN, #Reference<0.428535878.2306867202.138963>, :process, #PID<0.2807.0>, :noproc}, {:DOWN, #Reference<0.428535878.2306867202.138964>, :process, #PID<0.2809.0>, :noproc}, {:DOWN, #Reference<0.428535878.2306867202.138965>, :process, #PID<0.2811.0>, :noproc}, {:DOWN, #Reference<0.428535878.2306867202.138966>, :process, #PID<0.2813.0>, :noproc}, {:DOWN, #Reference<0.428535878.2306867202.138967>, :process, #PID<0.2815.0>, :noproc}, {:DOWN, #Reference<0.428535878.2306867202.138968>, :process, #PID<0.2816.0>, :noproc}, {:DOWN, #Reference<0.428535878.2306867202.138969>, :process, #PID<0.2818.0>, :noproc}, {:DOWN, #Reference<0.428535878.2306867202.138970>, :process, #PID<0.2820.0>, :noproc}]
Links: [#PID<0.2796.0>]
Dictionary: []
Trapping Exits: true
Status: :running
Heap Size: 6772
Stack Size: 29
Reductions: 7545
16:21:05.489 [error] GenServer #PID<0.2832.0> terminating
** (stop) no process: the process is not alive or there's no process currently associated with the given name, possibly because its application isn't started
Last message: {:DOWN, #Reference<0.428535878.2306867201.161875>, :process, #PID<0.2799.0>, :noproc}
State: {%{#Reference<0.428535878.2306867201.161876> => nil, #Reference<0.428535878.2306867201.161877> => nil, #Reference<0.428535878.2306867201.161878> => nil, #Reference<0.428535878.2306867201.161879> => nil, #Reference<0.428535878.2306867201.161880> => nil, #Reference<0.428535878.2306867201.161881> => nil, #Reference<0.428535878.2306867201.161882> => nil, #Reference<0.428535878.2306867201.161883> => nil, #Reference<0.428535878.2306867201.161884> => nil, #Reference<0.428535878.2306867201.161885> => nil, #Reference<0.428535878.2306867201.161886> => nil}, %{done?: false, producers: %{#Reference<0.428535878.2306867201.161876> => #PID<0.2801.0>, #Reference<0.428535878.2306867201.161877> => #PID<0.2803.0>, #Reference<0.428535878.2306867201.161878> => #PID<0.2805.0>, #Reference<0.428535878.2306867201.161879> => #PID<0.2807.0>, #Reference<0.428535878.2306867201.161880> => #PID<0.2809.0>, #Reference<0.428535878.2306867201.161881> => #PID<0.2811.0>, #Reference<0.428535878.2306867201.161882> => #PID<0.2813.0>, #Reference<0.428535878.2306867201.161883> => #PID<0.2815.0>, #Reference<0.428535878.2306867201.161884> => #PID<0.2816.0>, #Reference<0.428535878.2306867201.161885> => #PID<0.2818.0>, #Reference<0.428535878.2306867201.161886> => #PID<0.2820.0>}, trigger: #Function<2.15704490/3 in Flow.Window.Global.materialize/5>}, {11, 12}, [], #Function<6.70741094/4 in Flow.Materialize.build_reducer/2>}
16:21:05.489 [info] Child #Reference<0.428535878.2306867201.161872> of Supervisor #PID<0.2796.0> (Supervisor.Default) started
Pid: #PID<0.2832.0>
Start Call: GenStage.start_link(Flow.MapReducer, {:producer_consumer, [subscribe_to: [{#PID<0.2799.0>, [partition: 11, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2801.0>, [partition: 11, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2803.0>, [partition: 11, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2805.0>, [partition: 11, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2807.0>, [partition: 11, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2809.0>, [partition: 11, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2811.0>, [partition: 11, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2813.0>, [partition: 11, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2815.0>, [partition: 11, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2816.0>, [partition: 11, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2818.0>, [partition: 11, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}, {#PID<0.2820.0>, [partition: 11, cancel: :transient, key: {:key, :ontime}, cancel: :transient]}], dispatcher: GenStage.DemandDispatcher], {11, 12}, #Function<2.15704490/3 in Flow.Window.Global.materialize/5>, #Function<2.50321837/0 in Logacy.Alarms.Metrics.Core.calc/1>, #Function<6.70741094/4 in Flow.Materialize.build_reducer/2>}, [])
Restart: :temporary
Shutdown: 5000
Type: :worker
16:21:05.489 [error] Child #Reference<0.428535878.2306867201.161861> of Supervisor #PID<0.2796.0> (Supervisor.Default) terminated
** (exit) no process: the process is not alive or there's no process currently associated with the given name, possibly because its application isn't started
Pid: #PID<0.2831.0>
Start Call: GenStage.start_link/?
Restart: :temporary
Shutdown: 5000
Type: :worker
16:21:05.489 [error] Process #PID<0.2832.0> terminating
** (exit) no process: the process is not alive or there's no process currently associated with the given name, possibly because its application isn't started
    (stdlib 3.17.1) gen_server.erl:811: :gen_server.handle_common_reply/8
    (stdlib 3.17.1) proc_lib.erl:226: :proc_lib.init_p_do_apply/3
Initial Call: GenStage.init/1
Ancestors: [#PID<0.2796.0>, #PID<0.2795.0>, #PID<0.2430.0>, #PID<0.2426.0>, #PID<0.2425.0>, #PID<0.851.0>, Livebook.Runtime.ErlDist.NodeManager, #PID<0.849.0>]
Message Queue Length: 11
Messages: [{:DOWN, #Reference<0.428535878.2306867201.161876>, :process, #PID<0.2801.0>, :noproc}, {:DOWN, #Reference<0.428535878.2306867201.161877>, :process, #PID<0.2803.0>, :noproc}, {:DOWN, #Reference<0.428535878.2306867201.161878>, :process, #PID<0.2805.0>, :noproc}, {:DOWN, #Reference<0.428535878.2306867201.161879>, :process, #PID<0.2807.0>, :noproc}, {:DOWN, #Reference<0.428535878.2306867201.161880>, :process, #PID<0.2809.0>, :noproc}, {:DOWN, #Reference<0.428535878.2306867201.161881>, :process, #PID<0.2811.0>, :noproc}, {:DOWN, #Reference<0.428535878.2306867201.161882>, :process, #PID<0.2813.0>, :noproc}, {:DOWN, #Reference<0.428535878.2306867201.161883>, :process, #PID<0.2815.0>, :noproc}, {:DOWN, #Reference<0.428535878.2306867201.161884>, :process, #PID<0.2816.0>, :noproc}, {:DOWN, #Reference<0.428535878.2306867201.161885>, :process, #PID<0.2818.0>, :noproc}, {:DOWN, #Reference<0.428535878.2306867201.161886>, :process, #PID<0.2820.0>, :noproc}]
Links: [#PID<0.2796.0>]
Dictionary: []
Trapping Exits: true
Status: :running
Heap Size: 6772
Stack Size: 29
Reductions: 7545
16:21:05.489 [error] Child #Reference<0.428535878.2306867201.161872> of Supervisor #PID<0.2796.0> (Supervisor.Default) shut down abnormally
** (exit) no process: the process is not alive or there's no process currently associated with the given name, possibly because its application isn't started
Pid: #PID<0.2832.0>
Start Call: GenStage.start_link/?
Restart: :temporary
Shutdown: 5000
Type: :worker

Yes, there will always be a race if the producer can terminate before the consumers even subscribe. If you start the producer, then it will be expected for it to allow the pipeline to establish. Another option is for us to support returning :ignore from init and then change Flow to deal with it accordingly and without starting the rest.

No worries. Handling :ignore would help but there is always the chance of exiting from handle_demand before the rest have subscribed. I might try keeping a stage on hand, warmed up and ready to go.

Is there a way to detect that all the consumers have subscribed?

A PR that supports :ignore, if not supported yet, would be welcome then!

If you know the number of partitions next, then you can count the number of times handle_subscribe is called.

Ok, I'll look into it.

I partition on time over spans of day/week/month, so I don't think that will work for my use case.

@josevalim do you think it will be possible to handle the other case, where the demand is exhausted and the producer stops before all the workers are subscribed? Or would I be wasting my time trying?

It should be possible if:

  1. you know how many consumers will be subscribing
  2. you can uniquely tag each subscription
  3. you are sure all consumers will eventually subscribe

Even then, there may be corner cases.