refactor: add type spec to list_active_jobs

This commit is contained in:
Graham McIntire 2026-02-06 16:19:54 -06:00 committed by Graham McIntire
parent b2cc622036
commit 92f835bf9d
No known key found for this signature in database

View file

@ -18,6 +18,7 @@ defmodule Towerops.JobMonitoring do
@doc """
Lists all currently executing polling and discovery jobs.
"""
@spec list_active_jobs() :: [Job.t()]
def list_active_jobs do
from(j in Job,
where: j.state == "executing",