old_contents: import logging
  
  from aleph.core import celery
  from aleph.logic.alerts import check_alerts
  from aleph.logic.collections import index_collections
  from aleph.logic.notifications import generate_digest
  
  log = logging.getLogger(__name__)
  
  
  @celery.task(priority=7, expires=3600)
  def hourly():
      index_collections()
      check_alerts()
  
  
  @celery.task(priority=7, expires=84600)
  def daily():
      generate_digest()
  
new_contents: import logging
  
  from aleph.core import celery
  from aleph.logic.alerts import check_alerts
  from aleph.logic.collections import index_collections
  from aleph.logic.notifications import generate_digest
  
  log = logging.getLogger(__name__)
  
  
  @celery.task(priority=7, expires=3600)
  def hourly():
      index_collections()
  
  
  @celery.task(priority=7, expires=84600)
  def daily():
      check_alerts()
      generate_digest()
  
subject: Check alerts only daily