This is the output from my code to get the deployments list
⠇ Collecting deployments total in function: taramedAccount (account)
✔ Fetched functions.
⠸ Fetching deployments...
{
total: 1,
deployments: [
{
$id: "65e9915721f4b516fc9d",
$createdAt: "2024-03-07T10:05:11.543+00:00",
$updatedAt: "2024-03-07T10:05:47.691+00:00",
type: "vcs",
resourceId: "657de74807e8c5a3d6b4",
resourceType: "functions",
entrypoint: "src/main.ts",
size: 3072245,
buildId: "65e9917ba734832d5f2d",
activate: true,
status: "ready",
buildLogs: "Preparing for build ...\nBuilding ...\nbun install v1.0.29 (a146856d)\n\n + bun-types@1.0.18\n + prettier@3.0.3\n + node-appwrite@11.1.0\n\n 12 packages installed [238.00ms]\nPacking build ...\nBuild finished.\n",
buildTime: 6,
...
Focus on this output:
$id: "65e9915721f4b516fc9d",
$createdAt: "2024-03-07T10:05:11.543+00:00",
$updatedAt: "2024-03-07T10:05:47.691+00:00",
type: "vcs",
resourceId: "657de74807e8c5a3d6b4",
resourceType: "functions",
entrypoint: "src/main.ts",
size: 3072245,
buildId: "65e9917ba734832d5f2d",
activate: true,
status: "ready",
As you can see the 65e9915721f4b516fc9d's status is ready but according on the console is active please observe the picture
My objective is I want to delete all deployments excepts the active statys
status
but I cant use the Query.notEqual("status", "active"), this gives me an error.
{
...
activate: true,
}
Unfortunately my friend I think that is not the solution for my problem
every deployment's active are true
Oh, I see - you need to get the active deployment ID from the Function, not from the Deployment
ohhh I seee
tnx @ideclon
[SOLVED] Issue on Status of Deployment in ServerSide
Recommended threads
- All function deployments fail (node 18-2...
Error: bash: /usr/local/server/helpers/build-cache.sh: No such file or directory Sidecar error: Build archive was not created at /mnt/code/code.tar.gz Scope: ...
- Why does this happen?
`AppwriteException: general_argument_invalid, Invalid `secret` param: Value must be a valid string and at least 1 chars and no longer than 256 chars (400)` the...
- Selfhosted starter python function retur...
I am running a selfhosted appwrite instance. Creating a node function and executing it works just fine but when i try to execute a python starter function, i ge...