You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by GitBox <gi...@apache.org> on 2019/03/22 06:18:34 UTC

[GitHub] [incubator-openwhisk-runtime-python] Sumhua opened a new pull request #55: exec fn outside the main function at action init

Sumhua opened a new pull request #55: exec fn outside the main function at action init
URL: https://github.com/apache/incubator-openwhisk-runtime-python/pull/55
 
 
   after python action run  success,while pod stay warm state;
   current run method will exec below when next invoke:
   ```
   exec(self.fn, self.global_context)
   exec('fun = %s(param)' % self.mainFn, self.global_context)
   ```
   the definition outside the main function will be exec every time.
   global var(value) previous will be lost,so exec such code at action init may be correct
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services