@@ -453,14 +453,7 @@ def _publish_output(self, key, trigger, lqcpub, timestamp_map=None):
453453 # and the backup will be overwritten
454454 # if one or more nexts were generated when publishing
455455 # at the end of execution, they will have been appended to our list
456- # in memory and we will store the backup once for the entire list
457- def _store_trigger_backups (self , dlc , input_backup_map , current_function_instance_id , store_next_backup_list = False ):
458- if self ._execution_info_map_name is not None :
459- for input_backup_key in input_backup_map :
460- dlc .putMapEntry (self ._execution_info_map_name , input_backup_key , input_backup_map [input_backup_key ])
461- if store_next_backup_list :
462- dlc .putMapEntry (self ._execution_info_map_name , "next_" + current_function_instance_id , json .dumps (self ._next_backup_list ))
463-
456+ # in memory and we will log the backup once for the entire list
464457 def _log_trigger_backups (self , input_backup_map , current_function_instance_id , store_next_backup_list = False ):
465458 if self ._execution_info_map_name is not None :
466459 for input_backup_key in input_backup_map :
@@ -469,6 +462,7 @@ def _log_trigger_backups(self, input_backup_map, current_function_instance_id, s
469462 self ._logger .info ("[__mfn_backup] [%s] [%s] %s" , self ._execution_info_map_name , "next_" + current_function_instance_id , json .dumps (self ._next_backup_list ))
470463
471464 def _send_message_to_recovery_manager (self , key , message_type , topic , func_exec_id , has_error , error_type , lqcpub ):
465+ # TODO
472466 return
473467 message_rec = {}
474468 message_rec ["messageType" ] = message_type
@@ -484,8 +478,8 @@ def _send_message_to_recovery_manager(self, key, message_type, topic, func_exec_
484478 # message via global publisher to pub manager's queue for backups
485479 self ._send_local_queue_message (lqcpub , self ._pub_topic_global , key , outputstr )
486480
487- # need to store backups of inputs and send message to recovery manager
488- def send_to_function_now (self , key , trigger , lqcpub = None , dlc = None , backup_to_log = False ):
481+ # need to log backups of inputs and send message to recovery manager
482+ def send_to_function_now (self , key , trigger , lqcpub = None ):
489483 trigger ["value" ] = self .encode_output (trigger ["value" ])
490484
491485 # get a local queue client
@@ -513,12 +507,7 @@ def send_to_function_now(self, key, trigger, lqcpub=None, dlc=None, backup_to_lo
513507 self ._next_backup_list .append (next_function_instance_id )
514508 any_next = True
515509
516- if backup_to_log :
517- self ._log_trigger_backups (input_backup_map , current_function_instance_id , store_next_backup_list = any_next )
518- else :
519- if dlc is None :
520- dlc = self .get_backup_data_layer_client ()
521- self ._store_trigger_backups (dlc , input_backup_map , current_function_instance_id , store_next_backup_list = any_next )
510+ self ._log_trigger_backups (input_backup_map , current_function_instance_id , store_next_backup_list = any_next )
522511
523512 for next_func_exec_id in starting_next :
524513 next_func_topic = starting_next [next_func_exec_id ]
@@ -654,8 +643,7 @@ def publish_output_direct(self, key, value_output, has_error, error_type, timest
654643 if self ._should_checkpoint :
655644 timestamp_map ["t_start_backtrigger" ] = time .time () * 1000.0
656645 # backups for next of successfully completed function execution instances
657- self ._store_trigger_backups (dlc , input_backup_map , current_function_instance_id , store_next_backup_list = any_next )
658- #self._log_trigger_backups(input_backup_map, current_function_instance_id, store_next_backup_list=any_next)
646+ self ._log_trigger_backups (input_backup_map , current_function_instance_id , store_next_backup_list = any_next )
659647
660648 for next_func_exec_id in starting_next :
661649 next_func_topic = starting_next [next_func_exec_id ]
0 commit comments