Commit ae955119 authored by Samuel GAIST's avatar Samuel GAIST
Browse files

[worker] Made all constants of bytes

parent 3699a277
......@@ -36,18 +36,18 @@ import simplejson
class WorkerController(object):
# Status codes
READY = 'rdy'
EXIT = 'ext'
DONE = 'don'
JOB_ERROR = 'erj'
ERROR = 'err'
CANCELLED = 'cld'
READY = b'rdy'
EXIT = b'ext'
DONE = b'don'
JOB_ERROR = b'erj'
ERROR = b'err'
CANCELLED = b'cld'
# Commands
EXECUTE = 'exe'
CANCEL = 'cnl'
ACK = 'ack'
SCHEDULER_SHUTDOWN = 'shd'
EXECUTE = b'exe'
CANCEL = b'cnl'
ACK = b'ack'
SCHEDULER_SHUTDOWN = b'shd'
class Callbacks(object):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment