Browse Source

Updated the Changelog

Ask Solem 15 years ago
parent
commit
72d336d708
2 changed files with 52 additions and 5 deletions
  1. 44 1
      Changelog
  2. 8 4
      celery/conf.py

+ 44 - 1
Changelog

@@ -2,7 +2,50 @@
  Change history
 ================
 
-1.0.1 [2010-02-24 xx:xx x.x CET]
+1.0.2 [xxxx-xx-xx xx:xx x.x CET]
+================================
+
+* Deprecated: ``CELERY_BACKEND``, please use ``CELERY_RESULT_BACKEND``
+  instead.
+
+* We now use a custom logger in tasks. This logger supports task magic
+  keyword arguments in formats.
+  The default format for tasks (``CELERYD_TASK_LOG_FORMAT``) now includes
+  the id and the name of tasks so the origin of task log messages can
+  easily be traced.
+
+  Example output::
+  	[2010-03-25 13:11:20,317: INFO/PoolWorker-1]
+  		[tasks.add(a6e1c5ad-60d9-42a0-8b24-9e39363125a4)] Hello from add
+
+  To revert to the previous behavior you can set::
+
+	CELERYD_TASK_LOG_FORMAT = """
+	[%(asctime)s: %(levelname)s/%(processName)s] %(message)s
+	""".strip()
+
+* Unittests: Don't disable the django test database teardown,
+  instead fixed the underlying issue which was caused by modifications
+  to the DATABASE_NAME setting (http://github.com/ask/celery/issues/82).
+
+* Debian init scripts: Use ``-a`` not ``&&``
+  (http://github.com/ask/celery/issues/82).
+
+* celery.beat.Scheduler: Fixed a bug where the schedule was not properly
+  flushed to disk if the schedule had not been properly initialized.
+
+* celerybeat: Now syncs the schedule to disk when receiving the ``SIGTERM``
+  and ``SIGINT`` signals.
+
+* Control commands: Make sure keywords arguments are not in unicode.
+
+* ETA scheduler: Was missing a logger object, so the scheduler crashed
+  when trying to log that a task had been revoked.
+
+* management.commands.camqadm: Fixed typo ``camqpadm`` -> ``camqadm``
+  (http://github.com/ask/celery/issues/83).
+
+1.0.1 [2010-02-24 07:05 P.M CET]
 ================================
 
 * Tasks are now acknowledged early instead of late.

+ 8 - 4
celery/conf.py

@@ -4,10 +4,14 @@ from datetime import timedelta
 
 from celery.loaders import load_settings
 
-DEFAULT_P_LOG_FMT = '[%(asctime)s: %(levelname)s/%(processName)s] %(message)s'
+DEFAULT_PROCESS_LOG_FMT = """
+    [%(asctime)s: %(levelname)s/%(processName)s] %(message)s
+""".strip()
 DEFAULT_LOG_FMT = '[%(asctime)s: %(levelname)s] %(message)s'
-DEFAULT_TASK_LOG_FMT = ('[%(asctime)s: %(levelname)s/%(processName)s] '
-                        '[%(task_name)s(%(task_id)s)] %(message)s')
+DEFAULT_TASK_LOG_FMT = " ".join("""
+    [%(asctime)s: %(levelname)s/%(processName)s]
+    [%(task_name)s(%(task_id)s)] %(message)s
+""".strip().split())
 
 LOG_LEVELS = dict(logging._levelNames)
 LOG_LEVELS["FATAL"] = logging.FATAL
@@ -34,7 +38,7 @@ _DEFAULTS = {
     "CELERY_BROKER_CONNECTION_MAX_RETRIES": 100,
     "CELERYD_CONCURRENCY": 0, # defaults to cpu count
     "CELERYD_PREFETCH_MULTIPLIER": 4,
-    "CELERYD_LOG_FORMAT": DEFAULT_P_LOG_FMT,
+    "CELERYD_LOG_FORMAT": DEFAULT_PROCESS_LOG_FMT,
     "CELERYD_TASK_LOG_FORMAT": DEFAULT_TASK_LOG_FMT,
     "CELERYD_LOG_LEVEL": "WARN",
     "CELERYD_LOG_FILE": None, # stderr