I am using firebase pub/sub scheduler in nodejs. I have a scheduler which runs for every 1 minute. What if the task inside a scheduler takes 10 minutes to complete and before 10 minutes if another instance of scheduler starts again then what will happen to the already existing scheduler instance?
CodePudding user response:
Cloud function instances are independent of each other. The previous one will keep running and processing what it was.
Cloud functions can run up to a max duration of 9 minutes (10 minutes for 2nd gen) so do checkout if that's suitable for your use case.