Class: Temporalio::Client::Schedule::Backfill
- Inherits:
-
Object
- Object
- Temporalio::Client::Schedule::Backfill
- Defined in:
- lib/temporalio/client/schedule.rb
Overview
Time period and policy for actions taken as if the time passed right now.
Instance Attribute Summary collapse
-
#end_at ⇒ Time
End of the range to evaluate the schedule in.
-
#overlap ⇒ OverlapPolicy
Overlap policy.
-
#start_at ⇒ Time
Start of the range to evaluate the schedule in.
Instance Method Summary collapse
-
#initialize(start_at:, end_at:, overlap: nil) ⇒ Backfill
constructor
Create backfill.
Constructor Details
#initialize(start_at:, end_at:, overlap: nil) ⇒ Backfill
Create backfill.
360 361 362 363 364 365 366 |
# File 'lib/temporalio/client/schedule.rb', line 360 def initialize( start_at:, end_at:, overlap: nil ) super end |
Instance Attribute Details
#end_at ⇒ Time
Returns End of the range to evaluate the schedule in. This is inclusive.
354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 |
# File 'lib/temporalio/client/schedule.rb', line 354 class Backfill # Create backfill. # # @param start_at [Time] Start of the range to evaluate the schedule in. This is exclusive. # @param end_at [Time] End of the range to evaluate the schedule in. This is inclusive. # @param overlap [OverlapPolicy] Overlap policy. def initialize( start_at:, end_at:, overlap: nil ) super end # @!visibility private def _to_proto Api::Schedule::V1::BackfillRequest.new( start_time: Internal::ProtoUtils.(start_at), end_time: Internal::ProtoUtils.(end_at), overlap_policy: overlap || Api::Enums::V1::ScheduleOverlapPolicy::SCHEDULE_OVERLAP_POLICY_UNSPECIFIED ) end end |
#overlap ⇒ OverlapPolicy
Returns Overlap policy.
354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 |
# File 'lib/temporalio/client/schedule.rb', line 354 class Backfill # Create backfill. # # @param start_at [Time] Start of the range to evaluate the schedule in. This is exclusive. # @param end_at [Time] End of the range to evaluate the schedule in. This is inclusive. # @param overlap [OverlapPolicy] Overlap policy. def initialize( start_at:, end_at:, overlap: nil ) super end # @!visibility private def _to_proto Api::Schedule::V1::BackfillRequest.new( start_time: Internal::ProtoUtils.(start_at), end_time: Internal::ProtoUtils.(end_at), overlap_policy: overlap || Api::Enums::V1::ScheduleOverlapPolicy::SCHEDULE_OVERLAP_POLICY_UNSPECIFIED ) end end |
#start_at ⇒ Time
Returns Start of the range to evaluate the schedule in. This is exclusive.
354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 |
# File 'lib/temporalio/client/schedule.rb', line 354 class Backfill # Create backfill. # # @param start_at [Time] Start of the range to evaluate the schedule in. This is exclusive. # @param end_at [Time] End of the range to evaluate the schedule in. This is inclusive. # @param overlap [OverlapPolicy] Overlap policy. def initialize( start_at:, end_at:, overlap: nil ) super end # @!visibility private def _to_proto Api::Schedule::V1::BackfillRequest.new( start_time: Internal::ProtoUtils.(start_at), end_time: Internal::ProtoUtils.(end_at), overlap_policy: overlap || Api::Enums::V1::ScheduleOverlapPolicy::SCHEDULE_OVERLAP_POLICY_UNSPECIFIED ) end end |