@@ -46,6 +46,7 @@ def start_workflow(workflow, *input, **args)
4646
4747 execution_options = ExecutionOptions . new ( workflow , options , config . default_execution_options )
4848 workflow_id = options [ :workflow_id ] || SecureRandom . uuid
49+ memo = options [ :memo ] || { }
4950
5051 if signal_name . nil? && signal_input . nil?
5152 response = connection . start_workflow_execution (
@@ -59,7 +60,8 @@ def start_workflow(workflow, *input, **args)
5960 run_timeout : compute_run_timeout ( execution_options ) ,
6061 task_timeout : execution_options . timeouts [ :task ] ,
6162 workflow_id_reuse_policy : options [ :workflow_id_reuse_policy ] ,
62- headers : execution_options . headers
63+ headers : execution_options . headers ,
64+ memo : memo ,
6365 )
6466 else
6567 raise ArgumentError , 'If signal_input is provided, you must also provide signal_name' if signal_name . nil?
@@ -75,6 +77,7 @@ def start_workflow(workflow, *input, **args)
7577 task_timeout : execution_options . timeouts [ :task ] ,
7678 workflow_id_reuse_policy : options [ :workflow_id_reuse_policy ] ,
7779 headers : execution_options . headers ,
80+ memo : memo ,
7881 signal_name : signal_name ,
7982 signal_input : signal_input
8083 )
@@ -107,6 +110,7 @@ def schedule_workflow(workflow, cron_schedule, *input, **args)
107110
108111 execution_options = ExecutionOptions . new ( workflow , options , config . default_execution_options )
109112 workflow_id = options [ :workflow_id ] || SecureRandom . uuid
113+ memo = options [ :memo ] || { }
110114
111115 response = connection . start_workflow_execution (
112116 namespace : execution_options . namespace ,
@@ -122,7 +126,8 @@ def schedule_workflow(workflow, cron_schedule, *input, **args)
122126 task_timeout : execution_options . timeouts [ :task ] ,
123127 workflow_id_reuse_policy : options [ :workflow_id_reuse_policy ] ,
124128 headers : execution_options . headers ,
125- cron_schedule : cron_schedule
129+ cron_schedule : cron_schedule ,
130+ memo : memo
126131 )
127132
128133 response . run_id
0 commit comments