This same function (get_next_run_time) is written differently in the current 3.x code for apscheduler. I tried replacing the old function with this new one and I still see the error. https://github.com/agronholm/apscheduler/blob/3.x/src/apscheduler/jobstores/sqlalchemy.py#L97
The error shows up in `journalctl -u watcher-decision-engine` Nov 04 18:23:10 juju-f851c6-0-lxd-27 systemd[1]: Started OpenStack Watcher Decision Engine. Nov 04 18:23:12 juju-f851c6-0-lxd-27 watcher-decision-engine[1253368]: Exception in thread APScheduler: Nov 04 18:23:12 juju-f851c6-0-lxd-27 watcher-decision-engine[1253368]: Traceback (most recent call last): Nov 04 18:23:12 juju-f851c6-0-lxd-27 watcher-decision-engine[1253368]: File "/usr/lib/python3.10/threading.py", line 1016, in _bootstrap_inner Nov 04 18:23:12 juju-f851c6-0-lxd-27 watcher-decision-engine[1253368]: self.run() Nov 04 18:23:12 juju-f851c6-0-lxd-27 watcher-decision-engine[1253368]: File "/usr/lib/python3.10/threading.py", line 953, in run Nov 04 18:23:12 juju-f851c6-0-lxd-27 watcher-decision-engine[1253368]: self._target(*self._args, **self._kwargs) Nov 04 18:23:12 juju-f851c6-0-lxd-27 watcher-decision-engine[1253368]: File "/usr/lib/python3/dist-packages/apscheduler/schedulers/blocking.py", line 32, in _main_loop Nov 04 18:23:12 juju-f851c6-0-lxd-27 watcher-decision-engine[1253368]: wait_seconds = self._process_jobs() Nov 04 18:23:12 juju-f851c6-0-lxd-27 watcher-decision-engine[1253368]: File "/usr/lib/python3/dist-packages/apscheduler/schedulers/base.py", line 1006, in _process_jobs Nov 04 18:23:12 juju-f851c6-0-lxd-27 watcher-decision-engine[1253368]: jobstore_next_run_time = jobstore.get_next_run_time() Nov 04 18:23:12 juju-f851c6-0-lxd-27 watcher-decision-engine[1253368]: File "/usr/lib/python3/dist-packages/apscheduler/jobstores/sqlalchemy.py", line 88, in get_next_run_time Nov 04 18:23:12 juju-f851c6-0-lxd-27 watcher-decision-engine[1253368]: return utc_timestamp_to_datetime(next_run_time) Nov 04 18:23:12 juju-f851c6-0-lxd-27 watcher-decision-engine[1253368]: File "/usr/lib/python3/dist-packages/apscheduler/util.py", line 193, in utc_timestamp_to_datetime Nov 04 18:23:12 juju-f851c6-0-lxd-27 watcher-decision-engine[1253368]: return datetime.fromtimestamp(timestamp, utc) Nov 04 18:23:12 juju-f851c6-0-lxd-27 watcher-decision-engine[1253368]: TypeError: 'decimal.Decimal' object cannot be interpreted as an integer Nov 04 18:23:12 juju-f851c6-0-lxd-27 watcher-decision-engine[1253368]: Exception in thread APScheduler: Nov 04 18:23:12 juju-f851c6-0-lxd-27 watcher-decision-engine[1253368]: Traceback (most recent call last): Nov 04 18:23:12 juju-f851c6-0-lxd-27 watcher-decision-engine[1253368]: File "/usr/lib/python3.10/threading.py", line 1016, in _bootstrap_inner Nov 04 18:23:12 juju-f851c6-0-lxd-27 watcher-decision-engine[1253368]: self.run() Nov 04 18:23:12 juju-f851c6-0-lxd-27 watcher-decision-engine[1253368]: File "/usr/lib/python3.10/threading.py", line 953, in run Nov 04 18:23:12 juju-f851c6-0-lxd-27 watcher-decision-engine[1253368]: self._target(*self._args, **self._kwargs) Nov 04 18:23:12 juju-f851c6-0-lxd-27 watcher-decision-engine[1253368]: File "/usr/lib/python3/dist-packages/apscheduler/schedulers/blocking.py", line 32, in _main_loop Nov 04 18:23:12 juju-f851c6-0-lxd-27 watcher-decision-engine[1253368]: wait_seconds = self._process_jobs() Nov 04 18:23:12 juju-f851c6-0-lxd-27 watcher-decision-engine[1253368]: File "/usr/lib/python3/dist-packages/apscheduler/schedulers/base.py", line 1006, in _process_jobs Nov 04 18:23:12 juju-f851c6-0-lxd-27 watcher-decision-engine[1253368]: jobstore_next_run_time = jobstore.get_next_run_time() Nov 04 18:23:12 juju-f851c6-0-lxd-27 watcher-decision-engine[1253368]: File "/usr/lib/python3/dist-packages/apscheduler/jobstores/sqlalchemy.py", line 88, in get_next_run_time Nov 04 18:23:12 juju-f851c6-0-lxd-27 watcher-decision-engine[1253368]: return utc_timestamp_to_datetime(next_run_time) Nov 04 18:23:12 juju-f851c6-0-lxd-27 watcher-decision-engine[1253368]: File "/usr/lib/python3/dist-packages/apscheduler/util.py", line 193, in utc_timestamp_to_datetime Nov 04 18:23:12 juju-f851c6-0-lxd-27 watcher-decision-engine[1253368]: return datetime.fromtimestamp(timestamp, utc) Nov 04 18:23:12 juju-f851c6-0-lxd-27 watcher-decision-engine[1253368]: TypeError: 'decimal.Decimal' object cannot be interpreted as an integer -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2108994 Title: apscheduler retrieving decimal.Decimal via sqlalchemy To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/apscheduler/+bug/2108994/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
