This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/celery/events.py b/celery/events.py | |
index c15ba4e..ac37c7a 100644 | |
--- a/celery/events.py | |
+++ b/celery/events.py | |
@@ -8,7 +8,7 @@ from celery.messaging import EventPublisher, EventConsumer | |
def create_event(type, fields): | |
std = {"type": type, | |
"timestamp": fields.get("timestamp") or time.time()} | |
- return dict(fields, **std) | |
+ return str(dict(fields, **std)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"loglevel": "DEBUG", | |
"date": "2010-04-27 21:34:47", | |
"message": "extracted text with features: {u'considering': True, u'raise': True, u'study': True, u'move': True, u'companies': True, u'subcontinent': True, u'junior': True, u'aim': True, u'indian': True, u'london': True, u'listed': True, u'performance': True, u'including': True, u'firms': True, u'ipos': True, u'market': True, u'encouraged': True}", | |
"_id": "4bd75877aa43237149000007", | |
"success": true | |
}, | |
{ | |
"loglevel": "DEBUG", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!-- | |
*** DTD commented out by IDS demo site to allow Internet Explorer 5.x to display formatted XML *** | |
<!DOCTYPE NewsML SYSTEM "../ref/NewsML-xhtml.dtd">--> | |
<!--src: rtr2newsml0.990--> | |
<NewsML Duid="TRE62G0CR_2010-03-17_17-25-56_NEWSML"> | |
<Catalog Href="http://www.reuters.com/newsml/mastercatalog.xml"/> | |
<NewsEnvelope> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!-- | |
SUMMARY: | |
- Structure: NML2 SNI Text | |
- Based On: NAR v1.2_1, NML2 v2.1_1 | |
AUTHOR: thomsonreuters.com | |
--> | |
<!-- ========================================================= --> | |
<newsMessage xmlns="http://iptc.org/std/nar/2006-10-01/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:rtr="http://www.reuters.com/ns/2003/08/content" xmlns:x="http://www.w3.org/1999/xhtml"> |
NewerOlder