@@ -70,7 +70,7 @@ let reschedule_if_old ~reassignment_timeout
7070let reschedule_old_zkapp_job
7171 ~partitioner :
7272 ({ reassignment_timeout; zkapp_jobs_sent_by_partitioner; _ } : t ) :
73- Work.Spec.Partitioned.Stable.Latest. t Or_error .t option =
73+ ( Work.Spec.Partitioned.Stable.Latest. t , _ ) Result .t option =
7474 let % map.Option job =
7575 Sent_zkapp_job_pool. remove_until_reschedule
7676 ~f: (reschedule_if_old ~reassignment_timeout )
@@ -81,7 +81,7 @@ let reschedule_old_zkapp_job
8181let reschedule_old_single_job
8282 ~partitioner :
8383 ({ reassignment_timeout; single_jobs_sent_by_partitioner; _ } : t ) :
84- Work.Spec.Partitioned.Stable.Latest. t Or_error .t option =
84+ ( Work.Spec.Partitioned.Stable.Latest. t , _ ) Result .t option =
8585 let % map.Option job =
8686 Sent_single_job_pool. remove_until_reschedule
8787 ~f: (reschedule_if_old ~reassignment_timeout )
@@ -118,7 +118,7 @@ let schedule_from_pending_zkapp_command ~(id : Work.Id.Single.t)
118118 ~pending
119119
120120let schedule_from_any_pending_zkapp_command ~(partitioner : t ) :
121- Work.Spec.Partitioned.Stable.Latest. t Or_error .t option =
121+ ( Work.Spec.Partitioned.Stable.Latest. t , _ ) Result .t option =
122122 let spec_generated = ref None in
123123 (* TODO: Consider remove all works no longer relevant for current frontier,
124124 this may need changes from underlying work selector. *)
@@ -155,7 +155,7 @@ let convert_zkapp_command_from_selector ~partitioner ~job ~pairing
155155
156156let convert_single_work_from_selector ~(partitioner : t )
157157 ~(single_spec : Work.Spec.Single.t ) ~sok_message ~pairing :
158- Work.Spec.Partitioned.Stable.Latest. t Or_error .t =
158+ ( Work.Spec.Partitioned.Stable.Latest. t , _ ) Result .t =
159159 let job =
160160 Work.With_job_meta.
161161 { spec = single_spec
@@ -208,7 +208,7 @@ let schedule_from_tmp_slot ~(partitioner : t) =
208208 ~sok_message
209209
210210let schedule_job_from_partitioner ~(partitioner : t ) :
211- Work.Spec.Partitioned.Stable.Latest. t Or_error .t option =
211+ ( Work.Spec.Partitioned.Stable.Latest. t , _ ) Result .t option =
212212 List. find_map ~f: Lazy. force
213213 [ lazy (reschedule_old_zkapp_job ~partitioner )
214214 ; lazy (reschedule_old_single_job ~partitioner )
@@ -220,7 +220,7 @@ let schedule_job_from_partitioner ~(partitioner : t) :
220220let consume_job_from_selector ~(partitioner : t )
221221 ~(sok_message : Mina_base.Sok_message.t )
222222 ~(instances : Work.Spec.Single.t One_or_two.t ) :
223- Work.Spec.Partitioned.Stable.Latest. t Or_error .t =
223+ ( Work.Spec.Partitioned.Stable.Latest. t , _ ) Result .t =
224224 let pairing_id = Id_generator. next_id partitioner.single_id_gen () in
225225 Hashtbl. add_exn partitioner.pairing_pool ~key: pairing_id
226226 ~data: (Spec_only { spec = instances; sok_message }) ;
@@ -248,7 +248,7 @@ let request_from_selector_and_consume_by_partitioner ~(partitioner : t)
248248
249249let request_partitioned_work ~(sok_message : Mina_base.Sok_message.t )
250250 ~(work_from_selector : work_from_selector ) ~(partitioner : t ) :
251- Work.Spec.Partitioned.Stable.Latest. t Or_error .t option =
251+ ( Work.Spec.Partitioned.Stable.Latest. t , _ ) Result .t option =
252252 List. find_map ~f: Lazy. force
253253 [ lazy (schedule_job_from_partitioner ~partitioner )
254254 ; lazy
0 commit comments