@@ -159,14 +159,14 @@ func (m *ExecutionManager) offloadInputs(ctx context.Context, literalMap *core.L
159159 if literalMap == nil {
160160 literalMap = & core.LiteralMap {}
161161 }
162- inputsUri , err := m .storageClient .ConstructReference (ctx , m .storageClient .GetBaseContainerFQN (ctx ), shared .Metadata , identifier .Project , identifier .Domain , identifier .Name , key )
162+ inputsURI , err := m .storageClient .ConstructReference (ctx , m .storageClient .GetBaseContainerFQN (ctx ), shared .Metadata , identifier .Project , identifier .Domain , identifier .Name , key )
163163 if err != nil {
164164 return "" , err
165165 }
166- if err := m .storageClient .WriteProtobuf (ctx , inputsUri , storage.Options {}, literalMap ); err != nil {
166+ if err := m .storageClient .WriteProtobuf (ctx , inputsURI , storage.Options {}, literalMap ); err != nil {
167167 return "" , err
168168 }
169- return inputsUri , nil
169+ return inputsURI , nil
170170}
171171
172172func (m * ExecutionManager ) launchExecutionAndPrepareModel (
@@ -231,11 +231,11 @@ func (m *ExecutionManager) launchExecutionAndPrepareModel(
231231 // Dynamically assign execution queues.
232232 m .populateExecutionQueue (ctx , * workflow .Id , workflow .Closure .CompiledWorkflow )
233233
234- inputsUri , err := m .offloadInputs (ctx , executionInputs , & workflowExecutionID , shared .Inputs )
234+ inputsURI , err := m .offloadInputs (ctx , executionInputs , & workflowExecutionID , shared .Inputs )
235235 if err != nil {
236236 return nil , err
237237 }
238- userInputsUri , err := m .offloadInputs (ctx , request .Inputs , & workflowExecutionID , shared .UserInputs )
238+ userInputsURI , err := m .offloadInputs (ctx , request .Inputs , & workflowExecutionID , shared .UserInputs )
239239 if err != nil {
240240 return nil , err
241241 }
@@ -289,8 +289,8 @@ func (m *ExecutionManager) launchExecutionAndPrepareModel(
289289 WorkflowIdentifier : workflow .Id ,
290290 ParentNodeExecutionID : parentNodeExecutionID ,
291291 Cluster : execInfo .Cluster ,
292- InputsUri : inputsUri ,
293- UserInputsUri : userInputsUri ,
292+ InputsURI : inputsURI ,
293+ UserInputsURI : userInputsURI ,
294294 })
295295 if err != nil {
296296 logger .Infof (ctx , "Failed to create execution model in transformer for id: [%+v] with err: %v" ,
@@ -359,9 +359,9 @@ func (m *ExecutionManager) RelaunchExecution(
359359 executionSpec .Metadata = & admin.ExecutionMetadata {}
360360 }
361361 var inputs * core.LiteralMap
362- if len (existingExecutionModel .UserInputsUri ) > 0 {
362+ if len (existingExecutionModel .UserInputsURI ) > 0 {
363363 inputs = & core.LiteralMap {}
364- if err := m .storageClient .ReadProtobuf (ctx , existingExecutionModel .UserInputsUri , inputs ); err != nil {
364+ if err := m .storageClient .ReadProtobuf (ctx , existingExecutionModel .UserInputsURI , inputs ); err != nil {
365365 return nil , err
366366 }
367367 } else {
@@ -428,9 +428,9 @@ func (m *ExecutionManager) emitScheduledWorkflowMetrics(
428428 }
429429
430430 var inputs core.LiteralMap
431- err = m .storageClient .ReadProtobuf (ctx , storage . DataReference ( executionModel .InputsUri ) , & inputs )
431+ err = m .storageClient .ReadProtobuf (ctx , executionModel .InputsURI , & inputs )
432432 if err != nil {
433- logger .Errorf (ctx , "Failed to find inputs for emitting schedule delay event from uri: [%v]" , executionModel .InputsUri )
433+ logger .Errorf (ctx , "Failed to find inputs for emitting schedule delay event from uri: [%v]" , executionModel .InputsURI )
434434 return
435435 }
436436 scheduledKickoffTimeProto := inputs .Literals [launchPlan .Spec .EntityMetadata .Schedule .KickoffTimeInputArg ]
@@ -633,16 +633,16 @@ func (m *ExecutionManager) GetExecution(
633633 // TO BE DELETED
634634 // TODO: Remove the publishing to deprecated fields (Inputs) after a smooth migration has been completed of our existing users
635635 // For now, publish to deprecated fields thus ensuring old clients don't break when calling GetExecution
636- if len (executionModel .InputsUri ) > 0 {
636+ if len (executionModel .InputsURI ) > 0 {
637637 var inputs core.LiteralMap
638- if err := m .storageClient .ReadProtobuf (ctx , executionModel .InputsUri , & inputs ); err != nil {
638+ if err := m .storageClient .ReadProtobuf (ctx , executionModel .InputsURI , & inputs ); err != nil {
639639 return nil , err
640640 }
641641 execution .Closure .ComputedInputs = & inputs
642642 }
643- if len (executionModel .UserInputsUri ) > 0 {
643+ if len (executionModel .UserInputsURI ) > 0 {
644644 var userInputs core.LiteralMap
645- if err := m .storageClient .ReadProtobuf (ctx , executionModel .UserInputsUri , & userInputs ); err != nil {
645+ if err := m .storageClient .ReadProtobuf (ctx , executionModel .UserInputsURI , & userInputs ); err != nil {
646646 return nil , err
647647 }
648648 execution .Spec .Inputs = & userInputs
@@ -672,29 +672,29 @@ func (m *ExecutionManager) GetExecutionData(
672672 }
673673 }
674674 // Prior to flyteidl v0.15.0, Inputs were held in ExecutionClosure and were not offloaded. Ensure we can return the inputs as expected.
675- if len (executionModel .InputsUri ) == 0 {
675+ if len (executionModel .InputsURI ) == 0 {
676676 closure := & admin.ExecutionClosure {}
677677 // We must not use the FromExecutionModel method because it empties deprecated fields.
678678 if err := proto .Unmarshal (executionModel .Closure , closure ); err != nil {
679679 return nil , err
680680 }
681- newInputsUri , err := m .offloadInputs (ctx , closure .ComputedInputs , request .Id , shared .Inputs )
681+ newInputsURI , err := m .offloadInputs (ctx , closure .ComputedInputs , request .Id , shared .Inputs )
682682 if err != nil {
683683 return nil , err
684684 }
685685 // Update model so as not to offload again.
686- executionModel .InputsUri = newInputsUri
686+ executionModel .InputsURI = newInputsURI
687687 if err := m .db .ExecutionRepo ().UpdateExecution (ctx , * executionModel ); err != nil {
688688 return nil , err
689689 }
690690 }
691- inputsUrlBlob , err := m .urlData .Get (ctx , executionModel .InputsUri .String ())
691+ inputsURLBlob , err := m .urlData .Get (ctx , executionModel .InputsURI .String ())
692692 if err != nil {
693693 return nil , err
694694 }
695695 return & admin.WorkflowExecutionGetDataResponse {
696696 Outputs : & signedOutputsURLBlob ,
697- Inputs : & inputsUrlBlob ,
697+ Inputs : & inputsURLBlob ,
698698 }, nil
699699}
700700
0 commit comments