sunnyman's (sunnyman) wrote in changelog,
sunnyman's
sunnyman
changelog

[ljcom] r12191: LJSUP-12388: Implement notifications sub...

Committer: vtroitsky
LJSUP-12388: Implement notifications subsystem
U   trunk/bin/maint/selfpromo.pl
U   trunk/bin/maint/taskinfo-local.txt
Modified: trunk/bin/maint/selfpromo.pl
===================================================================
--- trunk/bin/maint/selfpromo.pl	2012-06-27 14:24:18 UTC (rev 12190)
+++ trunk/bin/maint/selfpromo.pl	2012-06-27 18:04:26 UTC (rev 12191)
@@ -27,22 +27,20 @@
     }
 };
 
+# run 1 time a day
 $maint{'commercial_create'} = sub {
     # Create additional slots for sell in commercial promo
     my $slot = LJ::Pay::PromotionSlot->find_slot(class => PROMO_COMMERCIAL());
     LJ::Pay::CommercialPromo->create_promotions($slot) if $slot;
 };
 
+# run as often as we did it for selfpromo_check (every minute)
 $maint{'commercial_check'} = sub {
     # check some promotions before active one
     my $slot = LJ::Pay::PromotionSlot->find_slot(class => PROMO_COMMERCIAL());
     $slot->check_current_promotion() if $slot;
-};
 
-$maint{'commercial_notify'} = sub {
-    # Notify promoters of not ready items
-    my $slot = LJ::Pay::PromotionSlot->find_slot(class => PROMO_COMMERCIAL());
+    # notify promoter about start/stop/ not ready items
     LJ::Pay::CommercialPromo->notify_promoters($slot) if $slot;
 };
-
 1;

Modified: trunk/bin/maint/taskinfo-local.txt
===================================================================
--- trunk/bin/maint/taskinfo-local.txt	2012-06-27 14:24:18 UTC (rev 12190)
+++ trunk/bin/maint/taskinfo-local.txt	2012-06-27 18:04:26 UTC (rev 12191)
@@ -68,4 +68,3 @@
   notificationpromo_check - Check the current entry promoted via NotificationPromo if it still should be promoted (not deleted / became ineligible / expired)
   commercial_create - Create promotions for sell in advance.
   commercial_check - Check current promoter object
-  commercial_notify - Notify promoters about not ready slots

Tags: ljcom, pl, sunnyman, txt, vtroitsky
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments