Source: apps/search_console_tools/core/executor.py.
๐ฏ Purpose
CommandRequestExecutor executes a CommandRequest and persists the result in the database.
Responsibilities:
- set
status=IN_PROGRESS - execute the command through
GoogleSearchConsoleEngine - save
result,errors, andfinished_at - attach a screenshot (if the engine captured it)
๐ Status transitions
NEWโIN_PROGRESS- then:
COMPLETED(no errors)FAILED(exception raised)
๐งพ result / errors
- executor tries to serialize
resultviajson.dumps - if that fails, it stores
str(result) - errors are stored as
errors=str(e)