c160671 Fix warning messages that lead to errors:

Authored and Committed by sergiomb 2 years ago
    Fix warning messages that lead to errors:
    
    Fix this messages: [WARNING] py.warnings: /usr/lib/python3.10/site-packages/celery/app/control.py:56: DuplicateNodenameWarning: Received multiple replies from node name: celery@ideapad.local.
     Please make sure you give each node a unique nodename using
     the celery worker `-n` option.
       warnings.warn(DuplicateNodenameWarning(
    
    will lead to these errors:
    /usr/bin/celery-3 -A pagure.lib.tasks status
    ->  celery@ideapad.local: OK
    ->  celery@ideapad.local: OK
    ->  celery@ideapad.local: OK
    ->  celery@ideapad.local: OK
    /usr/lib/python3.10/site-packages/celery/app/control.py:56: DuplicateNodenameWarning: Received multiple replies from node name: celery@ideapad.local.
    Please make sure you give each node a unique nodename using
    the celery worker `-n` option.
    warnings.warn(DuplicateNodenameWarning(
    
    1 node online.
    
    Solution found in https://stackoverflow.com/questions/33174520/check-if-all-my-workers-are-online-in-celery
    https://stackoverflow.com/a/33300769/778517
    
    Final result is:
    
    /usr/bin/celery-3 -A pagure.lib.tasks status ->  celery@load_json: OK
    ->  celery@logcom: OK
    ->  celery@worker: OK
    ->  celery@gitolite: OK
    ->  celery@authorized_keys: OK
    ->  celery@webhook: OK
    
    6 nodes online.
    
        
file modified
+1 -1
file modified
+1 -1
file modified
+1 -1