Packages

Bildad is a job scheduling framework for Phoenix applications (works with LiveView). It is designed to be simple to use and easy to integrate into your existing Elixir applications.

Current section

Files

Jump to
bildad lib job job_config.ex
Raw

lib/job/job_config.ex

defmodule Bildad.Job.JobConfig do
@moduledoc """
Configuration for the Bildad job scheduling framework.
"""
@enforce_keys [:repo]
defstruct [
:repo,
default_page_size: 25,
# immutable values
queue_status_running: "RUNNING",
queue_status_available: "AVAILABLE",
job_run_status_running: "RUNNING",
job_run_status_done: "DONE",
job_run_result_succeeded: "SUCCEEDED",
job_run_result_failed: "FAILED"
]
def new(repo, default_page_size \\ 25) do
%__MODULE__{repo: repo, default_page_size: default_page_size}
end
end