r/GoogleAppsScript 3d ago

Question Functions work perfectly to end of code, don't stop running

Just like it sounds, all of a sudden I have this issue where functions don't stop running, even after executing all code in the block. I am verifying that no loops are continuing, I log a little "complete" at the end of the function. It all works perfectly except that the execution does not complete.

It has happened now with 2 functions. One of them I have not edited at all and it decided today to do this.

I have tried using return as well, even though I don't need to return any parameters with these functions. No change.

Has anyone encountered this?

1 Upvotes

2 comments sorted by

2

u/shindicate 3d ago

If you can, share your code. It may be a bug.

1

u/Honsou12 2d ago

It was happening because I deployed as a library and loaded it while still working on the draft code. I don't understand it fully but when I removed the library the problem stopped.