Back

[SOLVED] 1.4.3 functions disable cleanup

  • 0
  • Functions
Kenny
20 Sep, 2023, 18:51

Is there a way to prevent the cleanup of a function container?

TL;DR
Title: [SOLVED] How to disable cleanup for a specific function container Solution: To prevent the cleanup of a specific function container, you have a few options: 1. Increase the threshold and checking intervals in the environment variables. 2. Check the keep alive logic as shown in the provided links. 3. Edit the executor file.
Binyamin
20 Sep, 2023, 18:51

Cleanup? You mean shutdown?

Kenny
20 Sep, 2023, 18:53

Like every 60 minutes a script is ran to check for inactive functions and cleans them up?

Kenny
20 Sep, 2023, 18:53

Can I prevent a specific function container from being cleaned?

Binyamin
20 Sep, 2023, 18:54

You can:

  1. Increase the Threshold interval variable
  2. Increase the Checking interval variable
  3. Check the keep alive logic like you can see here and here
  4. Edit the executor file
Binyamin
20 Sep, 2023, 18:54

For your case I would recommend going with the 3rd solution.

Kenny
20 Sep, 2023, 18:55

Sounds good, so just create another function that's set on a timer to ping this function every 30 minutes?

Binyamin
20 Sep, 2023, 18:56

Yes, if your Threshold + Checking interval is 30 minutes.

Binyamin
20 Sep, 2023, 18:56

That way you'll be able to treat other function like you use to

Kenny
20 Sep, 2023, 18:56

Sounds good, thanks!

Kenny
20 Sep, 2023, 18:56

[SOLVED] 1.4.3 functions disable cleanup

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more