jared 10 mesi fa
parent
commit
bf42399b76
1 ha cambiato i file con 5 aggiunte e 5 eliminazioni
  1. 5 5
      deployment/cel_single.py

+ 5 - 5
deployment/cel_single.py

@@ -40,10 +40,10 @@ def configure_workers(sender=None, **kwargs):
     global app
     global qname
     worker_name = sender.split("@")[-1]
-    app.conf.update(
-        task_concurrency=1,  # Use 4 threads for concurrency
-        worker_prefetch_multiplier=1  # Prefetch one task at a time
-    )
+#    app.conf.update(
+#        task_concurrency=1,  # Use 4 threads for concurrency
+#        worker_prefetch_multiplier=1  # Prefetch one task at a time
+#    )
     print("******")
     print(worker_name)
     qname=worker_name
@@ -158,7 +158,7 @@ def selenium_jared_click3():
             driver.quit()
             return txt
             break
-    app.control.broadcast('shutdown')
+    celery.control.broadcast('shutdown')
     return '{empty}'
 #    time.sleep(5)