feat: session - #102
Merged
Merged
feat: session#102
Conversation
liuzewen99
force-pushed
the
fix-session
branch
4 times, most recently
from
October 31, 2025 02:52
e7d53bb to
952ac81
Compare
rsonghuster
reviewed
Oct 31, 2025
|
|
||
| # Test create session | ||
| echo "Testing create session..." | ||
| sessionId=$(s cli fc3 session create --function-name fc3-session-${fc_component_function_name:-test} --qualifier LATEST --sessionTTLInSeconds 3600 --sessionIdleTimeoutInSeconds 1800 -o json | jq -r '.sessionId') |
Contributor
There was a problem hiding this comment.
保持和 --function-name 一样的风格, --session-ttl-in-seconds 3600 --session-idle-timeout-in-seconds 600
--session-ttl-in-seconds → 支持简写为 -st
--session-idle-timeout-in-seconds → 支持简写为 -si
可以参考 https://docs.serverless-devs.com/user-guide/aliyun/fc3/provision/#provision-put
|
|
||
| # Test get session | ||
| Write-Host "Testing get session..." | ||
| $getResult = s cli fc3 session get --function-name "fc3-session-$($env:fc_component_function_name)" --session-id $sessionId --qualifier LATEST -o json | ConvertFrom-Json |
Contributor
There was a problem hiding this comment.
所有的 s cli 模式,为什么没有 -a quanxi 参数
liuzewen99
force-pushed
the
fix-session
branch
2 times, most recently
from
November 5, 2025 08:33
fe6631b to
7105eb5
Compare
liuzewen99
force-pushed
the
fix-session
branch
from
November 5, 2025 09:41
67ae622 to
2e78945
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.