## List worker schedules `workers.schedules.list(worker_id) -> ScheduleListResponse` **get** `/api/workers/{workerId}/schedules` List scheduled tasks for a worker. ### Parameters - `worker_id: String` ### Returns - `class ScheduleListResponse` - `schedules: Array[WorkerSchedule]` - `class Scheduled` - `id: String` - `budget: :low | :standard | :high | :unlimited` - `:low` - `:standard` - `:high` - `:unlimited` - `input: String` - `next_run_at: Time` - `type: :scheduled` - `:scheduled` - `class Delayed` - `id: String` - `budget: :low | :standard | :high | :unlimited` - `:low` - `:standard` - `:high` - `:unlimited` - `delay_in_seconds: Integer` - `input: String` - `next_run_at: Time` - `type: :delayed` - `:delayed` - `class Cron` - `id: String` - `budget: :low | :standard | :high | :unlimited` - `:low` - `:standard` - `:high` - `:unlimited` - `cron: String` - `input: String` - `next_run_at: Time` - `type: :cron` - `:cron` - `class Interval` - `id: String` - `budget: :low | :standard | :high | :unlimited` - `:low` - `:standard` - `:high` - `:unlimited` - `input: String` - `interval_seconds: Integer` - `next_run_at: Time` - `type: :interval` - `:interval` - `worker_id: String` ### Example ```ruby require "handinger" handinger = Handinger::Client.new(api_key: "My API Key") schedules = handinger.workers.schedules.list("t_org_123_w_01HZY2ZJQ8G7K42W2D7WF6V4GM") puts(schedules) ``` #### Response ```json { "schedules": [ { "id": "id", "budget": "low", "input": "input", "nextRunAt": "2019-12-27T18:11:19.117Z", "type": "scheduled" } ], "workerId": "workerId" } ```