discourse/app/jobs/scheduled
Sam 5f64fd0a21 DEV: remove exec_sql and replace with mini_sql
Introduce new patterns for direct sql that are safe and fast.

MiniSql is not prone to memory bloat that can happen with direct PG usage.
It also has an extremely fast materializer and very a convenient API

- DB.exec(sql, *params) => runs sql returns row count
- DB.query(sql, *params) => runs sql returns usable objects (not a hash)
- DB.query_hash(sql, *params) => runs sql returns an array of hashes
- DB.query_single(sql, *params) => runs sql and returns a flat one dimensional array
- DB.build(sql) => returns a sql builder

See more at: https://github.com/discourse/mini_sql
2018-06-19 16:13:36 +10:00
..
about_stats.rb FIX: Fetch stats if it has not been cached. 2016-04-21 14:50:25 +08:00
auto_queue_handler.rb The ability to display errors on flagging actions. 2017-09-25 12:28:01 -04:00
badge_grant.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
calculate_avg_time.rb New badge, Rookie of the Month, for two new high quality users. 2017-03-31 15:06:31 -04:00
category_stats.rb
clean_up_crawler_stats.rb DEV: remove exec_sql and replace with mini_sql 2018-06-19 16:13:36 +10:00
clean_up_email_logs.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
clean_up_exports.rb FIX: Clean up stale UserExport records daily. 2018-06-05 09:43:40 +08:00
clean_up_search_logs.rb Clean up job for search logs 2017-07-14 14:30:58 -04:00
clean_up_unmatched_emails.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
clean_up_unmatched_ips.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
clean_up_unsubscribe_keys.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
clean_up_unused_staged_users.rb Add missing contexts when destroying users 2017-11-22 15:43:54 +01:00
clean_up_uploads.rb make rubocop happy 2018-06-04 19:06:52 +02:00
create_missing_avatars.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
dashboard_stats.rb UX: switch dashboard to be the new dashboard 2018-05-14 13:07:59 +10:00
destroy_old_deletion_stubs.rb
destroy_old_hidden_posts.rb
directory_refresh_daily.rb
directory_refresh_older.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
disable_bootstrap_mode.rb FIX: Improve checks for non-human users. 2017-04-06 11:29:34 +08:00
enqueue_digest_emails.rb Remove comment that is no longer accurate. 2018-04-18 14:22:18 +08:00
enqueue_onceoffs.rb Try running once off jobs outside of db:migrate 2016-04-07 15:07:24 -04:00
ensure_db_consistency.rb PERF: a faster way to count tags used per category 2018-02-12 15:16:47 -05:00
grant_anniversary_badges.rb DEV: remove exec_sql and replace with mini_sql 2018-06-19 16:13:36 +10:00
grant_new_user_of_the_month_badges.rb DEV: remove exec_sql and replace with mini_sql 2018-06-19 16:13:36 +10:00
heartbeat.rb
migrate_upload_scheme.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
pending_flags_reminder.rb Send a suspension message via email to a user 2017-09-25 12:26:41 -04:00
pending_queued_posts_reminder.rb FIX: send the queued posts reminder as a message to moderators instead of an email to the contact_email 2017-09-12 18:00:51 -04:00
pending_users_reminder.rb Don't override count value that has been set by query.count 2017-12-13 18:48:46 -08:00
periodical_updates.rb PERF: add option to limit how many categories are processed in one call to CategoryFeaturedTopic.feature_topics (#5446) 2017-12-20 13:42:29 +11:00
poll_feed.rb FIX: revert utf-8 encode changes 2018-05-20 17:50:36 +05:30
poll_mailbox.rb Add “pop3_polling_openssl_verify” setting to turn off TLS server certificate verification like “smtp_openssl_verify_mode”. Defaults to “true”, so it does not change current behavior. 2016-11-11 21:59:15 +01:00
process_badge_backlog.rb
purge_deleted_uploads.rb
purge_old_web_hook_events.rb Let's be more aggressive with purging old WebHookEvent records. 2017-11-08 14:15:34 +08:00
purge_unactivated.rb FIX: don't purge unactivated users with a message 2018-05-16 18:24:11 +02:00
reindex_search.rb FEATURE: search within title using in:title 2018-02-20 14:41:21 +11:00
schedule_backup.rb FEATURE: Allow Forums to disable the Backups feature 2017-12-21 15:22:04 -05:00
tl3_promotions.rb PERF: Tl3Promotions job can limit the number of TL3 candidates by using some simple requirements in the query 2018-02-05 17:54:36 -05:00
top_refresh_older.rb
top_refresh_today.rb
unsilence_users.rb FIX: automatically unsilence users 2018-02-05 17:45:47 +01:00
version_check.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
weekly.rb FEATURE: per client user tokens 2017-02-07 09:22:16 -05:00