ArchAstro.Types.AgentSchedule (archastro v0.2.0)

Copy Markdown

A scheduled task created by an agent. Supports one-time and recurring (cron-based) execution patterns.

Summary

Types

t()

@type t() :: %ArchAstro.Types.AgentSchedule{
  agent: String.t() | ArchAstro.Unset.t(),
  app: String.t() | ArchAstro.Unset.t(),
  created_at: DateTime.t() | ArchAstro.Unset.t(),
  cron_expression: String.t() | ArchAstro.Unset.t(),
  id: String.t(),
  instructions: String.t() | ArchAstro.Unset.t(),
  last_run_at: DateTime.t() | ArchAstro.Unset.t(),
  max_runs: integer() | ArchAstro.Unset.t(),
  metadata: %{optional(String.t()) => ArchAstro.JSON.t()} | ArchAstro.Unset.t(),
  next_run_at: DateTime.t() | ArchAstro.Unset.t(),
  run_count: integer() | ArchAstro.Unset.t(),
  schedule_type: String.t() | ArchAstro.Unset.t(),
  scheduled_at: DateTime.t() | ArchAstro.Unset.t(),
  status: String.t() | ArchAstro.Unset.t(),
  thread: String.t() | ArchAstro.Unset.t(),
  timezone: String.t() | ArchAstro.Unset.t(),
  updated_at: DateTime.t() | ArchAstro.Unset.t()
}

Functions

from_map(data)

@spec from_map(ArchAstro.JSON.object()) :: t()

matches?(value)

@spec matches?(ArchAstro.JSON.t()) :: boolean()

to_map(value)

@spec to_map(t()) :: ArchAstro.JSON.object()