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
- Need help with createExecution function
Hi, Need some help understanding createExecution. When requesting function execution via createExecution, the function handler arguments are incorrect and rese...
- Need Help with Google OAuth2 in Expo usi...
I'm learning React Native with Expo and trying to set up Google OAuth2 with Appwrite. I couldn't find any good docs or tutorials for this and my own attempt did...
- Got message for auto payment of 15usd fo...
how did this happen? 1. i claimed my 50usd credits via jsm hackathon - https://hackathon.jsmastery.pro/ 2. it asked me which org. to apply the credits on, i se...