TaskState#

class smoothcrawler_cluster.model.metadata_enum.TaskState(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]#

The task running state

The task result means it is the result of running web spider task. The web spider task could classify to be 4 different states: processing, done, terminate and error.

NOTHING = 'nothing'#

When crawler just be ready for running or in instantiating process, It would be this state.

PROCESSING = 'processing'#

Task running in processing.

DONE = 'done'#

Finish the task and it works finely without any exceptions.

TERMINATE = 'terminate'#

Web spider task running has been terminated so that it cannot finish all processes, but it doesn’t occur any exceptions except KeyboardInterrupt.

ERROR = 'error'#

If it raise any exceptions in web spider task running, its result would be error.