hk21702 / YA-GCal-Notion-Sync-Script

Script to synchronize between a Notion database and Google Calendar both ways. Uses Google App Script.
GNU General Public License v3.0
139 stars 10 forks source link

Sync goes on forever year 2030+ #68

Closed StroescuDiana closed 2 months ago

StroescuDiana commented 3 months ago

Make Sure You Are On The Latest Main Branch Version Before Reporting A Bug!!! @hk21702

Include the following information:

Describe the bug Evrything works fine, except that it goes on forever. I stopped the run and it reached 2090. Screenshots

Screenshot 2024-05-28 at 19 40 12
hk21702 commented 3 months ago

I think this is just a weird thing with how Google handles repeating events that have no end date. I've seen it in my usage, but it seems harmless unless it causes a runtime time out. Can you confirm that the events that keep populating are repeating events? If so, it should be fine to just let the run keep going. Eventually, it will stop on its own. Worst case, the run times out, and the result is the same as you manually stopping the run.

I could add a check to stop the run if it goes past a certain date, but with how the tokens are handled, it is likely the result would be the same as if the run timed out if it were to time out.

StroescuDiana commented 3 months ago

Yes, they are repeating events. I don't like that it keeps running, because it takes up battery and probably memory too.

github-actions[bot] commented 2 months ago

This issue has not had any activity for an extended period of time and is thus automatically being marked as stale.

Author, you can help out by closing this issue if the problem no longer exists, or adding more information.

github-actions[bot] commented 2 months ago

This issue has been closed automatically because it needs more information and has not had recent activity.