Closed fracpete closed 4 years ago
If a node crashes before it finishes a job, it still owns the job, so can query for its current job and then finalise/reset it.
That could work. I presume, I would use job.list(...)
with an appropriate filter
to locate jobs for the node and then call job.reset_job(...)
. What would the filter expression look like?
Do an exact
filter on the node
field with the pk
of the node. I.e.
{
"expressions": [
{
"type": "exact",
"field": "node",
"value": 1
}
]
}
Implemented.