|  | @@ -87,7 +87,6 @@ Configuration ->
 | 
											
												
													
														|  |      . concurrency -> %(concurrency)s
 |  |      . concurrency -> %(concurrency)s
 | 
											
												
													
														|  |      . events -> %(events)s
 |  |      . events -> %(events)s
 | 
											
												
													
														|  |      . beat -> %(celerybeat)s
 |  |      . beat -> %(celerybeat)s
 | 
											
												
													
														|  | ->>>>>>> events
 |  | 
 | 
											
												
													
														|  |  """.strip()
 |  |  """.strip()
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  OPTION_LIST = (
 |  |  OPTION_LIST = (
 | 
											
										
											
												
													
														|  | @@ -188,6 +187,7 @@ def run_worker(concurrency=conf.DAEMON_CONCURRENCY, detach=False,
 | 
											
												
													
														|  |      })
 |  |      })
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |      print("Celery has started.")
 |  |      print("Celery has started.")
 | 
											
												
													
														|  | 
 |  | +    set_process_status("Running...")
 | 
											
												
													
														|  |      if detach:
 |  |      if detach:
 | 
											
												
													
														|  |          from celery.log import setup_logger, redirect_stdouts_to_logger
 |  |          from celery.log import setup_logger, redirect_stdouts_to_logger
 | 
											
												
													
														|  |          context = platform.create_daemon_context(logfile, pidfile,
 |  |          context = platform.create_daemon_context(logfile, pidfile,
 | 
											
										
											
												
													
														|  | @@ -225,6 +225,7 @@ def run_worker(concurrency=conf.DAEMON_CONCURRENCY, detach=False,
 | 
											
												
													
														|  |      try:
 |  |      try:
 | 
											
												
													
														|  |          run_worker()
 |  |          run_worker()
 | 
											
												
													
														|  |      except:
 |  |      except:
 | 
											
												
													
														|  | 
 |  | +        set_process_status("Exiting...")
 | 
											
												
													
														|  |          if detach:
 |  |          if detach:
 | 
											
												
													
														|  |              context.close()
 |  |              context.close()
 | 
											
												
													
														|  |          raise
 |  |          raise
 | 
											
										
											
												
													
														|  | @@ -255,6 +256,12 @@ def parse_options(arguments):
 | 
											
												
													
														|  |      return options
 |  |      return options
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  | 
 |  | +def set_process_status(info):
 | 
											
												
													
														|  | 
 |  | +    arg_start = "manage" in sys.argv[0] and 2 or 1
 | 
											
												
													
														|  | 
 |  | +    info = "%s (%s)" % (info, " ".join(sys.argv[arg_start:]))
 | 
											
												
													
														|  | 
 |  | +    platform.set_mp_process_title("celeryd", info=info)
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  |  if __name__ == "__main__":
 |  |  if __name__ == "__main__":
 | 
											
												
													
														|  |      options = parse_options(sys.argv[1:])
 |  |      options = parse_options(sys.argv[1:])
 | 
											
												
													
														|  |      run_worker(**vars(options))
 |  |      run_worker(**vars(options))
 |