View Source Glific.Jobs (Glific v5.1.6)
The Jobs context.
Link to this section Summary
Functions
Gets a single job entry for the organization.
Update a bigquery_job with the message_id and organization_id
Update a bigquery_job table
Create or update a gcs_job with the message_id and organization_id
Link to this section Functions
@spec get_gcs_job(integer()) :: Glific.GCS.GcsJob.t() | nil
Gets a single job entry for the organization.
Raises Ecto.NoResultsError
if the User does not exist.
@spec update_bigquery_job(Glific.BigQuery.BigQueryJob.t(), map()) :: {:ok, Glific.BigQuery.BigQueryJob.t()} | {:error, Ecto.Changeset.t()}
Update a bigquery_job with the message_id and organization_id
@spec update_bigquery_job(non_neg_integer(), String.t(), map()) :: {:ok, Glific.BigQuery.BigQueryJob.t()} | {:error, Ecto.Changeset.t()}
Update a bigquery_job table
@spec update_gcs_job(map()) :: {:ok, Glific.GCS.GcsJob.t()} | {:error, Ecto.Changeset.t()}
Create or update a gcs_job with the message_id and organization_id