Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

Untitled

a guest Dec 6th, 2018 55 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. @celery.task(name='send_some_xyz_users_alerts')
  2. def send_some_xyz_users_alerts():
  3.     list_of_users = find_some_list_of_users()
  4.     for user in list_of_users:
  5.         send_user_alert.delay(user)
  6.  
  7.  
  8. @celery.task(name='send_user_alert')
  9. def send_user_alert(user):
  10.     data = get_data_for_user(user)
  11.     send_mail_to_user(data)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top