View Source Bildad.Job.JobTemplates (Bildad v0.1.8)

Manages job templates.

Summary

Functions

Creates a new job template with the provided attributes.

Deletes the provided job template.

Lists all the active job templates without pagination.

Lists all the active job templates with pagination (with the default page size if nil provided as the page size).

Lists all the active job templates without pagination.

Lists all the active job templates with pagination (with the default page size if nil provided as the page size).

Lists all the inactive job templates without pagination.

Lists all the inactive job templates with pagination (with the default page size if nil provided as the page size).

Lists all the active job templates without pagination.

Lists all the active job templates with pagination (with the default page size if nil provided as the page size).

Updates the provided job template with the provided attributes.

Functions

Link to this function

create_job_template(job_config, attrs)

View Source

Creates a new job template with the provided attributes.

Note that the module_name should be a string version of the Elixir module name that will be used to run the job.

Note that the job_context_schema should be a map that represents the schema of the context that will be passed to the job module. It will be used to validate the context before running the job.

Link to this function

delete_job_template(job_config, job_template)

View Source

Deletes the provided job template.

Link to this function

list_active_job_templates(job_config)

View Source

Lists all the active job templates without pagination.

Link to this function

list_active_job_templates(job_config, page, limit)

View Source

Lists all the active job templates with pagination (with the default page size if nil provided as the page size).

Link to this function

list_all_job_templates(job_config)

View Source

Lists all the active job templates without pagination.

Link to this function

list_all_job_templates(job_config, page, limit)

View Source

Lists all the active job templates with pagination (with the default page size if nil provided as the page size).

Link to this function

list_inactive_job_templates(job_config)

View Source

Lists all the inactive job templates without pagination.

Link to this function

list_inactive_job_templates(job_config, page, limit)

View Source

Lists all the inactive job templates with pagination (with the default page size if nil provided as the page size).

Link to this function

list_job_templates(job_config)

View Source

Lists all the active job templates without pagination.

Link to this function

list_job_templates(job_config, page, limit)

View Source

Lists all the active job templates with pagination (with the default page size if nil provided as the page size).

Link to this function

update_job_template(job_config, job_template, attrs)

View Source

Updates the provided job template with the provided attributes.