I don't think I want celery taking up valuable ram just to support the one-time onloading of data. I would be perfectly fine waiting for the activities to be gradually added, as the server memory and Strava rate limits allow.
I think the cron job approach will be best, periodically checking for more activities and saving a few at a time, writing to a logfile somewhere. I can adjust the time between jobs or the number submitted based on rate limits. Or I could just handle the stravalib error.
The cron job can be done manually or using BackgroundScheduler().
I don't think I want celery taking up valuable ram just to support the one-time onloading of data. I would be perfectly fine waiting for the activities to be gradually added, as the server memory and Strava rate limits allow.
I think the cron job approach will be best, periodically checking for more activities and saving a few at a time, writing to a logfile somewhere. I can adjust the time between jobs or the number submitted based on rate limits. Or I could just handle the stravalib error.
The cron job can be done manually or using BackgroundScheduler().
References