module Temporal::Testing::ScheduledWorkflows
When Temporal.schedule_workflow
is called in a test in local mode, we defer the execution and do not do it automatically. You can execute them or inspect their cron schedules using this module.
Public Class Methods
clear_all()
click to toggle source
# File lib/temporal/testing/scheduled_workflows.rb, line 24 def self.clear_all Private::Store.clear_all end
cron_schedules()
click to toggle source
For someone who wants to assert that the schedule is what they expect. Populated by Temporal.schedule_workflow
format: { <workflow_id>: <cron schedule string>, … }
# File lib/temporal/testing/scheduled_workflows.rb, line 20 def self.cron_schedules Private::Store.schedules end
execute(workflow_id:)
click to toggle source
# File lib/temporal/testing/scheduled_workflows.rb, line 9 def self.execute(workflow_id:) Private::Store.execute(workflow_id: workflow_id) end
execute_all()
click to toggle source
# File lib/temporal/testing/scheduled_workflows.rb, line 13 def self.execute_all Private::Store.execute_all end