When I create a new user, the ProcessNewUser (id,name) serverless Appwrite Function triggers.
It retrieves the user $id from the event payload (req.body).
It tries to create some default documents for that user.
This function used to work before some personal refactors, related with type-safety, maintainability and most importantly, new data models. Now, I did not expect to get the refactor just right first time around. However, whenever I create a new user and the function triggers, an old version of the code gets executed (tried multiple times over the last hour).
Entrypoint:
./dist/process-new-user/main.jsGit Settings:- Points at branch development
developmentBuild command: bun install && bun build ./functions/process-new-user/main.ts --outdir ./dist/process-new-user ;
Symptoms
- When doing commits to the repository to the development branch, I have noticed that builds are not triggered as they usually do
- When manually deploying, a new deployment is made, goes to status active, but when the functions executes it shows
Log messagesthat I no longer have (old code, before refactor).
Some help?
Screenshots attached.
Recommended threads
- Worker functions stuck on "Fetched 0 fun...
Appwrite Version: 1.9.0 Bug Description: The appwrite-worker-functions container gets stuck in an infinite loop logging "Fetched 0 functions..." while scheduled...
- I am using s3 for app storage but is it ...
_APP_STORAGE_DEVICE=s3 puts everything to the s3 storage but i need to be able to keep the function builds and site in the local and not waste the cloud storage...
- Local Serverless Function Testing: Are D...
I have followed the instructions to get the CLI working, and have been able to log-in, initialize my project, and created a simple Python function, which calls ...