2020-11-13 13:44:45 UTC - Brandon Smith: New to OpenWhisk... trying to research if the following interactions are possible...
Action (instance?) that can receive and publish multiple arbitrary event payloads during its lifecycle. The scenario is when the action is triggered by an external process, the action will act as a “driver”, responding to events and emitting new ones. This, interaction isn’t single request/response function. https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1605275085277500?thread_ts=1605275085.277500&cid=C3TPCAQG1 ---- 2020-11-13 14:56:14 UTC - Houman Kamali: Wouldn’t that make your function stateful? https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1605279374277600?thread_ts=1605275085.277500&cid=C3TPCAQG1 ---- 2020-11-13 14:58:01 UTC - Brandon Smith: Only while the function is executing https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1605279481278100?thread_ts=1605275085.277500&cid=C3TPCAQG1 ---- 2020-11-13 14:59:10 UTC - Houman Kamali: and how would you target the same function again, if there are multiple functions activated? https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1605279550279300?thread_ts=1605275085.277500&cid=C3TPCAQG1 ---- 2020-11-13 14:59:49 UTC - Brandon Smith: Right... that’s why I’m asking if this type of interaction is possible. https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1605279589280000?thread_ts=1605275085.277500&cid=C3TPCAQG1 ---- 2020-11-13 15:01:59 UTC - Brandon Smith: Function could immediately return or for a period of time via promises... async function main() { const a = await receive() send(“data”) const b = await receive() } https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1605279719282900?thread_ts=1605275085.277500&cid=C3TPCAQG1 ---- 2020-11-13 15:03:55 UTC - Houman Kamali: Yes and no. That’d conceptually be incompatible with serverless paradigm; however you can track that state outside of your cloud function runtime e.g. in a database or cache layer, and then different stateless invocations can start sharing the same lock, progress indicator, etc. https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1605279835283100?thread_ts=1605275085.277500&cid=C3TPCAQG1 ---- 2020-11-13 15:06:52 UTC - Brandon Smith: That’s interesting. I guess what I’m thinking is more akin to a generator function rather than a typical input / output function. https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1605280012284500?thread_ts=1605275085.277500&cid=C3TPCAQG1 ---- 2020-11-13 20:16:21 UTC - Anthony Hathuc: anyone has success running oui .. I keep getting this message when using wsk within oui. CLI works fine.. ❯ ```The request content was malformed: The specified runtime 'nodejs:6' is not supported by this platform. Valid values are: 'dotnet:2.2', 'go:1.11', 'nodejs:10', 'ballerina:0.990', 'ruby:2.5', 'dotnet:3.1', 'swift:5.1', 'blackbox', 'swift:4.2', 'rust:1.34', 'java:8', 'sequence', 'nodejs:12', 'python:3', 'go:1.15', 'python:2', 'php:7.4', 'nodejs:14', 'php:7.3'.``` https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1605298581285900 ---- 2020-11-13 20:20:38 UTC - Rodric Rabbah: looks like you have to specify a kind - nodejs:6 is deprecated https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1605298838286300 ---- 2020-11-13 20:20:47 UTC - Rodric Rabbah: @Nick Mitchell ^^ might know better https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1605298847286600 ---- 2020-11-13 20:21:49 UTC - Rodric Rabbah: the functions are reactive - so they can’t act as spontaneous generators https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1605298909286700?thread_ts=1605275085.277500&cid=C3TPCAQG1 ---- 2020-11-13 20:22:16 UTC - Rodric Rabbah: you can connect a “Trigger” even as a synthetic source to invoke the function which can then generate an input https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1605298936286900?thread_ts=1605275085.277500&cid=C3TPCAQG1 ---- 2020-11-13 20:22:43 UTC - Rodric Rabbah: so if the trigger needs to be periodic, you can use an “Alarm trigger” as one example https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1605298963287100?thread_ts=1605275085.277500&cid=C3TPCAQG1 ---- 2020-11-13 20:28:19 UTC - Anthony Hathuc: @Rodric Rabbah where do i specify that ? https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1605299299288600 ---- 2020-11-13 20:29:11 UTC - Anthony Hathuc: oh nvm i see that in the docs.. will try +1 : Rodric Rabbah https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1605299351288900 ---- 2020-11-13 20:31:26 UTC - Anthony Hathuc: works! is there a global variable or I have to qualify it every time? https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1605299486289700 ---- 2020-11-13 20:39:18 UTC - Rodric Rabbah: looks like this should be changed in oui to be `nodejs:default` perhaps https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1605299958290100 ----