@@ -30,7 +30,7 @@ def log_generic_alert(source, title, description):
3030 icon = "bullseye" , source = source )
3131
3232
33- @app .task (bind = True , priority = 3 )
33+ @app .task (bind = True , priority = 4 )
3434def add_alerts (self , runinterval ):
3535 now = timezone .now ()
3636
@@ -76,7 +76,7 @@ def add_alerts(self, runinterval):
7676 calculate_grade (product .id )
7777
7878
79- @app .task (bind = True , priority = 4 )
79+ @app .task (bind = True , priority = 5 )
8080def cleanup_alerts (* args , ** kwargs ):
8181 try :
8282 max_alerts_per_user = settings .MAX_ALERTS_PER_USER
@@ -94,12 +94,12 @@ def cleanup_alerts(*args, **kwargs):
9494 logger .info ("total number of alerts deleted: %s" , total_deleted_count )
9595
9696
97- @app .task (bind = True , priority = 4 )
97+ @app .task (bind = True , priority = 5 )
9898def flush_auditlog (* args , ** kwargs ):
9999 run_flush_auditlog ()
100100
101101
102- @app .task (bind = True , priority = 4 )
102+ @app .task (bind = True , priority = 5 )
103103def async_dupe_delete (* args , ** kwargs ):
104104 # Wrap with pghistory context for audit trail
105105 with pghistory .context (source = "dupe_delete_task" ):
@@ -173,7 +173,7 @@ def _async_dupe_delete_impl():
173173 calculate_grade (product .id )
174174
175175
176- @app .task (ignore_result = False , priority = 0 )
176+ @app .task (ignore_result = False , priority = 1 , expires = 10 ) # It is expected to respond in 5 seconds if it is here more than 10, it is not necessary to respond anymore
177177def celery_status ():
178178 return True
179179
@@ -237,13 +237,13 @@ def evaluate_pro_proposition(*args, **kwargs):
237237 announcement .save ()
238238
239239
240- @app .task (priority = 4 )
240+ @app .task (priority = 5 )
241241def clear_sessions (* args , ** kwargs ):
242242 call_command ("clearsessions" )
243243
244244
245245@dojo_async_task
246- @app .task (priority = 4 )
246+ @app .task (priority = 5 )
247247def update_watson_search_index_for_model (model_name , pk_list , * args , ** kwargs ):
248248 """
249249 Async task to update watson search indexes for a specific model type.
0 commit comments