@@ -793,11 +793,17 @@ def invocations(self, req: InvocationsRequest):
793
793
response = self .extras_batch_images_api (req .extras_batch_payload )
794
794
response .images = self .post_invocations (response .images , quality )
795
795
return response
796
+ elif req .task == 'get-progress' :
797
+ response = self .progressapi (req .progress_payload )
798
+ print ("____________getting progress result: " )
799
+ print (response )
800
+ return response
796
801
elif req .task == 'set-options' :
797
802
self .set_config (req .post_options_payload )
798
803
print (req .post_options_payload )
804
+ print (type (req .post_options_payload ))
799
805
print ("————————————settings updated———————————" )
800
- return
806
+ return "options has been set"
801
807
elif req .task == 'get-options' :
802
808
response = self .get_config ()
803
809
return response
@@ -820,15 +826,12 @@ def invocations(self, req: InvocationsRequest):
820
826
elif req .task == 'get-cmd-flags' :
821
827
response = self .get_cmd_flags ()
822
828
return response
823
- elif req .task == 'get-progress' :
824
- response = self .progressapi (req .progress_payload )
825
- return response
826
829
elif req .task == 'get-all-config' :
827
830
response = self .get_all_config ()
828
831
return response
829
832
elif req .task == 'do-nothing' :
830
833
print ("nothing has happened" )
831
- return
834
+ return "nothing has happened"
832
835
else :
833
836
return InvocationsErrorResponse (error = f'Invalid task - { req .task } ' )
834
837
0 commit comments