Skip to content

feat: session - #102

Merged
rsonghuster merged 1 commit into
masterfrom
fix-session
Nov 5, 2025
Merged

rsonghuster merged 1 commit into
masterfrom
fix-session

Conversation

@liuzewen99

Copy link
Copy Markdown
Collaborator

No description provided.

@liuzewen99
liuzewen99 force-pushed the fix-session branch 4 times, most recently from e7d53bb to 952ac81 Compare October 31, 2025 02:52
Comment thread __tests__/e2e/session/run Outdated

# 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')

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

保持和 --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

Image

Comment thread __tests__/e2e/session/run-windows.ps1 Outdated

# 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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

所有的 s cli 模式,为什么没有 -a quanxi 参数

@liuzewen99
liuzewen99 force-pushed the fix-session branch 2 times, most recently from fe6631b to 7105eb5 Compare November 5, 2025 08:33
@rsonghuster rsonghuster changed the title fix: session feat: session Nov 5, 2025
@rsonghuster
rsonghuster merged commit a4c1e56 into master Nov 5, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants