Poddibility to defer worker execution
This commit is contained in:
parent
ce74a4d9a1
commit
e2762e032c
3 changed files with 47 additions and 10 deletions
|
@ -1298,14 +1298,16 @@
|
|||
"created": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "Creation date"},
|
||||
"pid": {"type": "int unsigned", "not null": "1", "default": "0", "comment": "Process id of the worker"},
|
||||
"executed": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "Execution date"},
|
||||
"next_try": {"type": "datetime", "not null": "1", "default": "0001-01-01 00:00:00", "comment": "Next retrial date"},
|
||||
"retrial": {"type": "tinyint", "not null": "1", "default": "0", "comment": "Retrial counter"},
|
||||
"done": {"type": "boolean", "not null": "1", "default": "0", "comment": "Marked 1 when the task was done - will be deleted later"}
|
||||
},
|
||||
"indexes": {
|
||||
"PRIMARY": ["id"],
|
||||
"pid": ["pid"],
|
||||
"parameter": ["parameter(64)"],
|
||||
"priority_created": ["priority", "created"],
|
||||
"done_executed": ["done", "executed"]
|
||||
"priority_created_next_try": ["priority", "created", "next_try"],
|
||||
"done_executed_next_try": ["done", "executed", "next_try"]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue