Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions mrq/bin/mrq_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@
import sys
import argparse
import ujson as json
import json as json_stdlib
import datetime

sys.path.insert(0, os.getcwd())

from mrq import config, utils
from mrq.context import set_current_config, set_current_job, connections
from mrq.job import queue_job
from mrq.utils import load_class_by_path

from mrq.utils import load_class_by_path, MongoJSONEncoder

def main():

Expand Down Expand Up @@ -58,7 +58,7 @@ def main():
job.datestarted = datetime.datetime.utcnow()
set_current_job(job)
ret = job.perform()
print json.dumps(ret) # pylint: disable=no-member
print json_stdlib.dumps(ret, cls=MongoJSONEncoder) # pylint: disable=no-member

# This shouldn't be needed as the process will exit and close any remaining sockets
# connections.redis.connection_pool.disconnect()
Expand Down