From 8cbeca0849732e59ff6471f2f025e49357ef6142 Mon Sep 17 00:00:00 2001 From: Marc Anguera Insa Date: Wed, 5 Sep 2018 01:01:48 +0200 Subject: [PATCH] add OrganizationNotifierJob docs --- app/jobs/organization_notifier_job.rb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/jobs/organization_notifier_job.rb b/app/jobs/organization_notifier_job.rb index 183f83d07..e11250e62 100644 --- a/app/jobs/organization_notifier_job.rb +++ b/app/jobs/organization_notifier_job.rb @@ -1,3 +1,11 @@ +# A weekly digest email. +# +# Strategy: go throught all organizations and take latest active posts from last week +# posted by active members. Send an email to all active and online members +# with the email notifications enabled with those posts. + +# Schedule defined in config/schedule.yml file. + class OrganizationNotifierJob < ActiveJob::Base queue_as :cron