+1 to disallow it as init-parameters are not used at invoke time.

The init function invokes once and only once in users’ mind, they wouldn't 
aware of reuse of the container.




| |
Bill Zong
|
|
[email protected]
ShenZhen, China
|
签名由网易邮箱大师定制


On 12/21/2019 19:40,Rodric Rabbah<[email protected]> wrote:
This PR https://github.com/apache/openwhisk/pull/4559 added init-time
parameters. It allows those parameters to be specified on action
creation/updates as well as at invoke time.

This note is to solicit feedback on whether the controller should disallow
init-parameters at invoke time. The reason is that unless the activation is
a fresh (cold) activation, the init-parameters will not be observable by
the action (init-paramters are only sent at /init time and not /run time).

So it can be confusing although it is also convenient for rapid iterations
in the cloud (update/invoke pattern where the invoke is always cold after
an update).

Opinions and feedback?

-r

Reply via email to