| 
									
										
										
										
											2017-08-21 22:56:33 +02:00
										 |  |  | # frozen_string_literal: true | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | class Scheduler::SubscriptionsCleanupScheduler | 
					
						
							|  |  |  |   include Sidekiq::Worker | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-08-25 13:28:07 +02:00
										 |  |  |   sidekiq_options unique: :until_executed, retry: 0
 | 
					
						
							| 
									
										
										
										
											2018-08-19 15:48:29 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-08-21 22:56:33 +02:00
										 |  |  |   def perform | 
					
						
							|  |  |  |     Subscription.expired.in_batches.delete_all | 
					
						
							|  |  |  |   end | 
					
						
							|  |  |  | end |