Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Random errors when running tw_gtasks_sync on schedule #134

Open
fedor-ivn opened this issue Nov 10, 2024 · 0 comments
Open

[BUG] Random errors when running tw_gtasks_sync on schedule #134

fedor-ivn opened this issue Nov 10, 2024 · 0 comments
Labels

Comments

@fedor-ivn
Copy link

Describe the bug

I execute tw_gtasks_sync every two minutes. After some time, errors start appearing.

Exception was raised during program execution.

  File "/Users/fedorivn/projects/tmp/venv2/bin/tw_gtasks_sync", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/Users/fedorivn/projects/tmp/venv2/lib/python3.11/site-packages/click/core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/fedorivn/projects/tmp/venv2/lib/python3.11/site-packages/click/core.py", line 1078, in main
    rv = self.invoke(ctx)
         ^^^^^^^^^^^^^^^^
  File "/Users/fedorivn/projects/tmp/venv2/lib/python3.11/site-packages/click/core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/fedorivn/projects/tmp/venv2/lib/python3.11/site-packages/click/core.py", line 783, in invoke
    return __callback(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/fedorivn/projects/tmp/venv2/lib/python3.11/site-packages/syncall/scripts/tw_gtasks_sync.py", line 221, in main
    aggregator.sync()
  File "/Users/fedorivn/projects/tmp/venv2/lib/python3.11/site-packages/syncall/aggregator.py", line 194, in sync
    changes_B = self.detect_changes(self._helper_B, items_B)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/fedorivn/projects/tmp/venv2/lib/python3.11/site-packages/syncall/aggregator.py", line 174, in detect_changes
    cached_item = pickle_load(serdes_dir / item_id)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/fedorivn/projects/tmp/venv2/lib/python3.11/site-packages/bubop/serial.py", line 19, in pickle_load
    with Path(path).open("rb") as f:
         ^^^^^^^^^^^^^^^^^^^^^
  File "/nix/store/k07bkf79yb122qa1hkh3nis7q3zim3b6-python3-3.11.10/lib/python3.11/pathlib.py", line 1044, in open
    return io.open(self, mode, buffering, encoding, errors, newline)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^


[Errno 2] No such file or directory: '/Users/fedorivn/Library/Preferences/syncall/serdes/tw/37c4f77e-9ccb-40c6-8e8f-f57f91955049'

To Reproduce

Occurs randomly.

Versions

OS Version (cat /etc/*-release; uname -a)

Darwin fedorivns-mbp 23.4.0 Darwin Kernel Version 23.4.0: Wed Feb 21 21:44:54 PST 2024; root:xnu-10063.101.15~2/RELEASE_ARM64_T6030 arm64

Python version (python --version; python3 --version)

Python 3.11.10
Python 3.11.10

--version of your executable

E.g., with tw_gcal_sync, provide the output of tw_gcal_sync --version:

tw_gtasks_sync, version 1.8.8

Additional context

I built the package locally from the master branch.

@fedor-ivn fedor-ivn added the bug label Nov 10, 2024
@fedor-ivn fedor-ivn changed the title [BUG] [BUG] Random errors when running tw_gtasks_sync on schedule Nov 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant