refactor: add type spec to list_active_jobs
This commit is contained in:
parent
b2cc622036
commit
92f835bf9d
1 changed files with 1 additions and 0 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue