PR change requests. moved email sernding job to hourly job tasks. and add database table index
This commit is contained in:
parent
4601dd71b6
commit
afc9c55b9f
|
|
@ -1,6 +1,8 @@
|
||||||
class AddProfileCompleteColumnsToUsers < ActiveRecord::Migration
|
class AddProfileCompleteColumnsToUsers < ActiveRecord::Migration
|
||||||
def self.up
|
def self.up
|
||||||
execute "ALTER TABLE users ADD COLUMN profile_completed_at TIMESTAMP"
|
execute "ALTER TABLE users ADD COLUMN profile_completed_at TIMESTAMP"
|
||||||
|
#add index on profile_completed_at
|
||||||
|
execute "CREATE INDEX index_users_on_profile_completed_at ON users USING btree (profile_completed_at)"
|
||||||
execute "ALTER TABLE users ADD COLUMN profile_complete_reminder1_sent_at TIMESTAMP"
|
execute "ALTER TABLE users ADD COLUMN profile_complete_reminder1_sent_at TIMESTAMP"
|
||||||
execute "ALTER TABLE users ADD COLUMN profile_complete_reminder2_sent_at TIMESTAMP"
|
execute "ALTER TABLE users ADD COLUMN profile_complete_reminder2_sent_at TIMESTAMP"
|
||||||
execute "ALTER TABLE users ADD COLUMN profile_complete_reminder3_sent_at TIMESTAMP"
|
execute "ALTER TABLE users ADD COLUMN profile_complete_reminder3_sent_at TIMESTAMP"
|
||||||
|
|
|
||||||
|
|
@ -13,6 +13,7 @@ module JamRuby
|
||||||
#TeacherPayment.hourly_check
|
#TeacherPayment.hourly_check
|
||||||
User.hourly_check
|
User.hourly_check
|
||||||
AffiliatePartner.tally_up(Date.today)
|
AffiliatePartner.tally_up(Date.today)
|
||||||
|
EmailProfileReminder.send_reminders
|
||||||
ConnectionManager.new.cleanup_dangling
|
ConnectionManager.new.cleanup_dangling
|
||||||
|
|
||||||
@@log.info("done")
|
@@log.info("done")
|
||||||
|
|
|
||||||
|
|
@ -70,11 +70,6 @@ NewMusicianMatchEmailer:
|
||||||
class: "JamRuby::NewMusicianMatchEmailer"
|
class: "JamRuby::NewMusicianMatchEmailer"
|
||||||
description: "Sends weekly emails of new users with good latency - (User latency data from neo4j)"
|
description: "Sends weekly emails of new users with good latency - (User latency data from neo4j)"
|
||||||
|
|
||||||
ProfileReminderEmailer:
|
|
||||||
cron: "0 23 * * *" # 11pm
|
|
||||||
class: "JamRuby::ProfileReminderEmailer"
|
|
||||||
description: "Sends emails reminding users to complete their profile"
|
|
||||||
|
|
||||||
MusicSessionScheduler:
|
MusicSessionScheduler:
|
||||||
cron: "0 * * * *"
|
cron: "0 * * * *"
|
||||||
class: "JamRuby::MusicSessionScheduler"
|
class: "JamRuby::MusicSessionScheduler"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue