discourse/app/jobs/scheduled
Sam 335be272ff FEATURE: implement capping of new/unread
We cap new and unread at 2/5th of SiteSetting.max_tracked_new_unread

This dynamic capping is applied under 2 conditions:

1. New capping is applied once every 15 minutes in the periodical job, this effectively ensures that usually even super active sites are capped at 200 new items

2. Unread capping is applied if a user hits max_tracked_new_unread,
  meaning if new + unread == 500, we defer a job that runs within 15 minutes that will cap user at 200 unread

This logic ensures that at worst case a user gets "bad" numbers for 15 minutes and then the system goes ahead and fixes itself up
2015-09-07 12:03:17 +10:00
..
about_stats.rb PERF: Cache About#stats. 2015-07-20 22:45:05 +08:00
badge_grant.rb FIX: Don't stop the badge grant after the first failure 2015-03-28 18:36:05 -07:00
calculate_avg_time.rb PERF: move avg time calculation to daily 2014-07-25 13:21:10 +10:00
category_stats.rb PERF: only run category stats once a day 2014-08-11 09:41:50 +10:00
clean_up_digest_keys.rb Migrate unsubscribe keys to the database. 2015-02-13 14:24:15 -05:00
clean_up_exports.rb Rename CsvExportLog to UserExport 2014-12-28 22:31:12 +05:30
clean_up_unmatched_emails.rb ooops. forgot the args :fired: 2014-11-25 18:45:45 +01:00
clean_up_unmatched_ips.rb FEATURE: Use created_at to remove an ip if its last_match_at is null 2015-06-05 10:51:13 -04:00
clean_up_uploads.rb FIX: 'clean up uploads' job 2015-05-22 20:28:52 +02:00
create_missing_avatars.rb CRUSHED: duplicate key value violates unique constraint 'index_uploads_on_sha1' 2015-05-07 01:00:13 +02:00
daily_performance_report.rb Don't run perf report in multisite 2015-06-26 16:30:07 +10:00
dashboard_stats.rb PERF: Cache About#stats. 2015-07-20 22:45:05 +08:00
destroy_old_deletion_stubs.rb FEATURE: new scheduler 2014-02-06 10:26:16 +11:00
destroy_old_hidden_posts.rb FEATURE: auto-delete any hidden posts that stay hidden for more than 30 days 2014-09-25 19:51:00 +02:00
directory_refresh_daily.rb PERF: Only refresh the Daily stats hourly, do the others daily. 2015-04-20 12:11:36 -04:00
directory_refresh_older.rb PERF: Only refresh the Daily stats hourly, do the others daily. 2015-04-20 12:11:36 -04:00
enqueue_digest_emails.rb Disable digest emails site setting 2015-01-27 22:41:36 +05:30
ensure_db_consistency.rb FIX: ensure CategoryUser consistency 2015-09-02 22:02:31 +02:00
heartbeat.rb FEATURE: unicorn sidekiq will restart sidekiq on complete failure. 2014-04-23 13:13:18 +10:00
migrate_scheme.rb FEATURE: move migrate_to_new_scheme into a background job 2015-06-12 12:07:57 +02:00
pending_flags_reminder.rb Send email to contact_email if there are flags submitted more than 48 hours ago. Configurable with the notify_about_flags_after site setting. 2014-04-03 14:34:40 -04:00
pending_queued_posts_reminder.rb FEATURE: notify by email when there are posts from new users waiting to be reviewed 2015-06-18 15:47:35 -04:00
pending_users_reminder.rb FIX: don't send repeated notifications that there are pending users who need to be approved to moderators who haven't read the previous notification 2014-07-16 17:53:51 -04:00
periodical_updates.rb FEATURE: implement capping of new/unread 2015-09-07 12:03:17 +10:00
poll_feed.rb Changes RSS item creation to prevent encoding errors 2015-07-20 14:30:42 +02:00
poll_mailbox.rb FEATURE: allow logging of raw body of all unprocessable email 2015-07-31 15:10:35 +10:00
process_badge_backlog.rb FIX: faster update of all badges 2014-07-23 11:46:07 +10:00
purge_deleted_uploads.rb FEATURE: new scheduler 2014-02-06 10:26:16 +11:00
purge_inactive.rb rename purge_inactive to purge_unactivated 2014-12-02 21:36:25 -08:00
reindex_search.rb PERF: push reindex job to daily 2014-07-01 10:09:55 +10:00
schedule_backup.rb FEATURE: allow backup settings to be overriden by globals 2015-08-14 16:28:29 +10:00
tl3_promotions.rb Rename 'leader' -> 'tl3' 2014-09-30 13:16:34 +10:00
top_refresh_older.rb OPTIMIZATION: Don't run 12 queries every 15 mins for the Top section. 2014-08-01 16:25:20 -04:00
top_refresh_today.rb OPTIMIZATION: Don't run 12 queries every 15 mins for the Top section. 2014-08-01 16:25:20 -04:00
version_check.rb FEATURE: allow version emails to be disabled globally 2014-08-23 10:02:32 +10:00
weekly.rb FIX: leaving around useless drafts after posting 2015-06-02 20:28:33 +10:00