Summary
The Temporal API exposes a ListScheduleMatchingTimes RPC that returns the timestamps a schedule would fire within a given time range. The CLI does not currently have a command for this operation.
Proposed command
temporal schedule list-matching-times \
--schedule-id <id> \
--start-time <timestamp> \
--end-time <timestamp>
This would call ListScheduleMatchingTimes and print the returned timestamps (one per line in text mode, array in JSON mode).
API reference
The RPC is defined in temporalio/api:
The request takes namespace, schedule_id, start_time, and end_time. The response is a repeated list of google.protobuf.Timestamp.
Summary
The Temporal API exposes a
ListScheduleMatchingTimesRPC that returns the timestamps a schedule would fire within a given time range. The CLI does not currently have a command for this operation.Proposed command
This would call
ListScheduleMatchingTimesand print the returned timestamps (one per line in text mode, array in JSON mode).API reference
The RPC is defined in temporalio/api:
temporal/api/workflowservice/v1/service.proto#L815temporal/api/workflowservice/v1/request_response.proto#L1454-L1468The request takes
namespace,schedule_id,start_time, andend_time. The response is a repeated list ofgoogle.protobuf.Timestamp.