Packages

A background job library for Gleam and Postgres!

Current section

Files

Jump to
m25 include m25@internal@sql_GetJobRow.hrl
Raw

include/m25@internal@sql_GetJobRow.hrl

-record(get_job_row, {
id :: youid@uuid:uuid(),
queue_name :: binary(),
created_at :: gleam@time@timestamp:timestamp(),
scheduled_at :: gleam@time@timestamp:timestamp(),
input :: binary(),
reserved_at :: gleam@time@timestamp:timestamp(),
started_at :: gleam@time@timestamp:timestamp(),
cancelled_at :: gleam@time@timestamp:timestamp(),
finished_at :: gleam@time@timestamp:timestamp(),
timeout :: integer(),
status :: binary(),
output :: gleam@option:option(binary()),
deadline :: gleam@time@timestamp:timestamp(),
latest_heartbeat_at :: gleam@time@timestamp:timestamp(),
failure_reason :: gleam@option:option(binary()),
error_data :: gleam@option:option(binary()),
attempt :: integer(),
max_attempts :: integer(),
original_attempt_id :: gleam@option:option(youid@uuid:uuid()),
previous_attempt_id :: gleam@option:option(youid@uuid:uuid()),
retry_delay :: integer(),
unique_key :: gleam@option:option(binary())
}).