Skip to content

flush-queue fails if unprintable char in args #30

@tcarlander

Description

@tcarlander

if the args contain some non ascii chars sometimes flush-queue stops with:

  File "/....../lib/python3.4/site-packages/async/management/commands/flush_queue.py", line 63, in run
    print ("%s: %s" % (job.id, job))
UnicodeEncodeError: 'ascii' codec can't encode character '\xe9' in position 137: ordinal not in range(128)

the args in the above failure where:
["fiche-de-suivi-mensuel-collines", "ben", {"query": "l\u00e9a", "group": null, "status": null}, {"host": "ben.mdca.wfp.org", "is_secure": false}, false, false]

the job finished but was never marked completed as it broke on print job

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions