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 2022/07/25 11:38:41 UTC
[GitHub] [openwhisk-runtime-ruby] ningyougang opened a new pull request, #72: Support array result include sequence action
ningyougang opened a new pull request, #72:
URL: https://github.com/apache/openwhisk-runtime-ruby/pull/72
Depend on below prs:
- https://github.com/apache/openwhisk/pull/5290 (If want to this pr's travis ci passed, should merge 5290 firstly)
- https://github.com/apache/openwhisk-runtime-go/pull/170 (because python also uses go runtime's actionProxy)
- [x] Support array result
- [x] make ruby runtime to support array result for common action
- [x] make ruby runtime to support array result for sequence action (support array as input param)
--
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.
To unsubscribe, e-mail: issues-unsubscribe@openwhisk.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [openwhisk-runtime-ruby] ningyougang commented on pull request #72: Support array result include sequence action
Posted by GitBox <gi...@apache.org>.
ningyougang commented on PR #72:
URL: https://github.com/apache/openwhisk-runtime-ruby/pull/72#issuecomment-1193939227
sequence action also supports by default(includes 2.5 and 2.6), test steps as below
* Write split.rb and sort.rb
```ruby
[root@nccddev130026 ~]# cat split.rb
def main(args)
payload = args["payload"] || "aaa\nbbb\ncccc"
separator = args["separator"] || "\n"
result=payload.split(separator)
puts result
result
end
[root@nccddev130026 ~]# cat sort.rb
def main(args)
newResult = args.reverse
puts newResult
newResult
end
```
* Create sequence action and invoke it (I tested ruby:2.5/2.6, worked well both)
```shell
wsk -i action create /whisk.system/utils/split-ruby --kind ruby:2.5 ~/split.rb
wsk -i action create /whisk.system/utils/sort-ruby --kind ruby:2.5 ~/sort.rb
wsk -i action create mySequence-ruby --sequence /whisk.system/utils/split-ruby,/whisk.system/utils/sort-ruby
wsk -i action invoke --result mySequence-ruby --param payload "dddd\nbbbb\ncccc\nfffffff\nggggggggg" -r -v
```
--
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.
To unsubscribe, e-mail: issues-unsubscribe@openwhisk.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [openwhisk-runtime-ruby] dgrove-oss merged pull request #72: Support array result include sequence action
Posted by GitBox <gi...@apache.org>.
dgrove-oss merged PR #72:
URL: https://github.com/apache/openwhisk-runtime-ruby/pull/72
--
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.
To unsubscribe, e-mail: issues-unsubscribe@openwhisk.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org