freezingsaddles / freezing-sync

Freezing Saddles activity retrieval and processing
Apache License 2.0
1 stars 1 forks source link

Delayed refetch of effortless rides #20

Closed merlinorg closed 4 years ago

merlinorg commented 4 years ago

Hypostulating that strava has delayed consistency, if a ride comes back with no efforts then don't flag it as fully fetched; instead, try at least two more times. Maybe this closes #18 and its friends.

merlinorg commented 4 years ago

I have not figured out how to actually run this, so this is purely speculative.

obscurerichard commented 4 years ago

Hmm, I'm not sure it's working, I applied this to prod, ran a sync of activities, but resync_count is still all zeroes:

[centos@ip-172-26-7-85 compose]$ freezing-sync-activities
Syncing activities from Strava. See this file for the log:
/home/centos/freezing-sync-activities-2020-01-19T22:50:37+0000

real    1m57.299s
user    0m0.036s
sys 0m0.055s
[centos@ip-172-26-7-85 compose]$ mysql
mysql: [Warning] Using a password on the command line interface can be insecure.
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 7795
Server version: 5.6.44-log Source distribution

Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> select resync_count, count(resync_count) from rides group by resync_count;
+--------------+---------------------+
| resync_count | count(resync_count) |
+--------------+---------------------+
|            0 |                5379 |
+--------------+---------------------+
1 row in set (0.00 sec)
obscurerichard commented 4 years ago

I merged this since it isn't making stuff worse.