#5332 Please make sure you give each node a unique nodename using the celery worker `-n` option and TypeError: BaseEventLoop.create_server() got an unexpected keyword argument 'loop'
Merged 2 years ago by ngompa. Opened 2 years ago by sergiomb.
sergiomb/pagure master  into  master

@@ -4,7 +4,7 @@ 

  Documentation=https://pagure.io/pagure

  

  [Service]

- ExecStart=/usr/bin/celery -A pagure.lib.tasks worker --loglevel=INFO -c 1 -Q authorized_keys_queue

+ ExecStart=/usr/bin/celery -A pagure.lib.tasks worker --loglevel=INFO -c 1 -Q authorized_keys_queue -n authorized_keys

  Environment="PAGURE_CONFIG=/etc/pagure/pagure.cfg"

  Type=simple

  User=git

@@ -4,7 +4,7 @@ 

  Documentation=https://pagure.io/pagure

  

  [Service]

- ExecStart=/usr/bin/celery -A pagure.lib.tasks worker --loglevel=INFO -c 1 -Q gitolite_queue

+ ExecStart=/usr/bin/celery -A pagure.lib.tasks worker --loglevel=INFO -c 1 -Q gitolite_queue -n gitolite

  Environment="PAGURE_CONFIG=/etc/pagure/pagure.cfg"

  Type=simple

  User=git

@@ -8,7 +8,7 @@ 

  Documentation=https://pagure.io/pagure

  

  [Service]

- ExecStart=/usr/bin/celery -A pagure.lib.tasks_services worker --loglevel=INFO -Q pagure_loadjson

+ ExecStart=/usr/bin/celery -A pagure.lib.tasks_services worker --loglevel=INFO -Q pagure_loadjson -n load_json

  Environment="PAGURE_CONFIG=/etc/pagure/pagure.cfg"

  Type=simple

  User=git

file modified
+1 -1
@@ -8,7 +8,7 @@ 

  Documentation=https://pagure.io/pagure

  

  [Service]

- ExecStart=/usr/bin/celery -A pagure.lib.tasks_services worker --loglevel=INFO -Q pagure_logcom

+ ExecStart=/usr/bin/celery -A pagure.lib.tasks_services worker --loglevel=INFO -Q pagure_logcom -n logcom

  Environment="PAGURE_CONFIG=/etc/pagure/pagure.cfg"

  Type=simple

  User=git

file modified
+1 -1
@@ -8,7 +8,7 @@ 

  Documentation=https://pagure.io/pagure

  

  [Service]

- ExecStart=/usr/bin/celery -A pagure.lib.tasks_services worker --loglevel=INFO -Q pagure_webhook

+ ExecStart=/usr/bin/celery -A pagure.lib.tasks_services worker --loglevel=INFO -Q pagure_webhook -n webhook

  Environment="PAGURE_CONFIG=/etc/pagure/pagure.cfg"

  Type=simple

  User=git

file modified
+1 -1
@@ -4,7 +4,7 @@ 

  Documentation=https://pagure.io/pagure

  

  [Service]

- ExecStart=/usr/bin/celery -A pagure.lib.tasks worker --loglevel=INFO

+ ExecStart=/usr/bin/celery -A pagure.lib.tasks worker --loglevel=INFO -n worker

  Environment="PAGURE_CONFIG=/etc/pagure/pagure.cfg"

  Type=simple

  User=git

@@ -253,7 +253,6 @@ 

              handle_client,

              host=None,

              port=pagure.config.config["EVENTSOURCE_PORT"],

-             loop=loop,

          )

          SERVER = loop.run_until_complete(coro)

          log.info(
@@ -264,7 +263,6 @@ 

                  stats,

                  host=None,

                  port=pagure.config.config.get("EV_STATS_PORT"),

-                 loop=loop,

              )

              stats_server = loop.run_until_complete(stats_coro)

              log.info(

  • Fix warning messages that lead to errors: Please make sure you give each node a unique nodename using
    the celery worker -n option.
  • Fix (#2127569) TypeError: BaseEventLoop.create_server() got an unexpected keyword argument 'loop'

Pull-Request has been merged by ngompa

2 years ago