nanos / FediFetcher

FediFetcher is a tool for Mastodon that automatically fetches missing replies and posts from other fediverse instances, and adds them to your own Mastodon instance.
https://blog.thms.uk/fedifetcher?utm_source=github
MIT License
293 stars 213 forks source link

[Question] frequency of execution of the cron #104

Closed Tealk closed 3 months ago

Tealk commented 3 months ago

Hi,

I wanted to ask you what your experience is with how often you should run the cron? In my case there are 4538 accounts with 667 active users.

nanos commented 3 months ago

I run mine every minute. It can take between 3-10 minutes to run against my instance, so this ensure it picks up again straight away as soon as possible.

Tealk commented 3 months ago

Thanks, I have now also set it to every minute, systemd also prevents multiple executions.

For me, a run takes less than 2 minutes, usually even less than one:

Mar 15 15:10:08 aprelay python[198463]: 2024-03-15 15:10:08.014348 CET: Processing finished in 0:01:00.496053.
Mar 15 15:10:58 aprelay python[198467]: 2024-03-15 15:10:58.616970 CET: Processing finished in 0:00:50.486644.
Mar 15 15:11:53 aprelay python[198472]: 2024-03-15 15:11:53.591828 CET: Processing finished in 0:00:46.070748.
Mar 15 15:12:50 aprelay python[198475]: 2024-03-15 15:12:50.980350 CET: Processing finished in 0:00:43.458106.
Mar 15 15:13:49 aprelay python[198484]: 2024-03-15 15:13:49.144125 CET: Processing finished in 0:00:41.626685.
Mar 15 15:15:05 aprelay python[198486]: 2024-03-15 15:15:05.345256 CET: Processing finished in 0:00:57.817517.
Mar 15 15:15:57 aprelay python[198488]: 2024-03-15 15:15:57.892215 CET: Processing finished in 0:00:52.432264.
Mar 15 15:16:58 aprelay python[198495]: 2024-03-15 15:16:58.680149 CET: Processing finished in 0:00:51.164500.
Mar 15 15:17:57 aprelay python[198501]: 2024-03-15 15:17:57.349003 CET: Processing finished in 0:00:49.833748.
Mar 15 15:18:52 aprelay python[198509]: 2024-03-15 15:18:52.431546 CET: Processing finished in 0:00:44.909335.
Mar 15 15:20:04 aprelay python[198513]: 2024-03-15 15:20:04.340185 CET: Processing finished in 0:00:56.822176.
Mar 15 15:21:02 aprelay python[198515]: 2024-03-15 15:21:02.397932 CET: Processing finished in 0:00:57.948115.
Mar 15 15:21:44 aprelay python[198673]: 2024-03-15 15:21:44.382450 CET: Processing finished in 0:00:41.871581.
Mar 15 15:22:55 aprelay python[198975]: 2024-03-15 15:22:55.110803 CET: Processing finished in 0:00:47.597434.
Mar 15 15:24:16 aprelay python[198986]: 2024-03-15 15:24:16.426859 CET: Processing finished in 0:01:08.903646.
Mar 15 15:25:15 aprelay python[198990]: 2024-03-15 15:25:15.363171 CET: Processing finished in 0:00:58.829812.
Mar 15 15:26:09 aprelay python[198992]: 2024-03-15 15:26:09.759572 CET: Processing finished in 0:00:54.267358.
Mar 15 15:27:30 aprelay python[198994]: 2024-03-15 15:27:30.487201 CET: Processing finished in 0:01:20.620844.
Mar 15 15:28:45 aprelay python[198996]: 2024-03-15 15:28:45.025491 CET: Processing finished in 0:01:14.401868.
Mar 15 15:29:32 aprelay python[199005]: 2024-03-15 15:29:32.813033 CET: Processing finished in 0:00:47.669939.
Mar 15 15:30:51 aprelay python[199012]: 2024-03-15 15:30:51.255455 CET: Processing finished in 0:01:18.322547.
Mar 15 15:31:48 aprelay python[199017]: 2024-03-15 15:31:48.190677 CET: Processing finished in 0:00:56.810638.
Mar 15 15:32:36 aprelay python[199021]: 2024-03-15 15:32:36.651779 CET: Processing finished in 0:00:48.347229.
Mar 15 15:33:28 aprelay python[199024]: 2024-03-15 15:33:28.545243 CET: Processing finished in 0:00:51.774918.
Mar 15 15:34:55 aprelay python[199031]: 2024-03-15 15:34:55.018915 CET: Processing finished in 0:01:26.360914.
Mar 15 15:35:51 aprelay python[199037]: 2024-03-15 15:35:51.569696 CET: Processing finished in 0:00:56.444140.
Mar 15 15:36:40 aprelay python[199040]: 2024-03-15 15:36:40.875640 CET: Processing finished in 0:00:49.169033.
Mar 15 15:37:46 aprelay python[199043]: 2024-03-15 15:37:46.711570 CET: Processing finished in 0:01:05.703922.
Mar 15 15:38:34 aprelay python[199046]: 2024-03-15 15:38:34.732322 CET: Processing finished in 0:00:47.911517.
Mar 15 15:39:27 aprelay python[199054]: 2024-03-15 15:39:27.658524 CET: Processing finished in 0:00:52.801128.
Mar 15 15:40:45 aprelay python[199060]: 2024-03-15 15:40:45.986142 CET: Processing finished in 0:01:18.219064.