You've already forked tribes-plugin-supertest
forked from tribes/tribes-plugin-template
6caccf23a6
Add supertest scheduler cron workers and local API endpoints that record singleton and all-nodes scheduler executions into synced supertest cases.\n\nThe probe API lets live supertest scenarios start, inspect, and stop scheduler assertions without adding a separate resource.
11 lines
298 B
Elixir
11 lines
298 B
Elixir
defmodule TribeOne.TribesPlugin.Supertest.Scheduler.SingletonCounterWorker do
|
|
@moduledoc false
|
|
|
|
@behaviour Tribes.Plugin.Scheduler
|
|
|
|
@impl true
|
|
def perform(%Tribes.Plugin.Scheduler.Job{} = job) do
|
|
TribeOne.TribesPlugin.Supertest.API.record_scheduler_execution(:singleton, job)
|
|
end
|
|
end
|