Repository navigation
Conversation
| db_document.task_incoming.logs = [ | ||
| TesTaskLog(**logs) for logs in logs | ||
| ] | ||
| db_document.task_incoming.state = TesState.UNKNOWN |
There was a problem hiding this comment.
I'm not feeling well and it's not easy to process these changes for me right now. But this seems odd to me. The task state in the incoming task model instance (which we use to return responses to the client) does of course need to be updated from the remote, just like the logs. It shouldn't just remain in state UNKNOWN.
But maybe I'm missing something here, it's really hard to concentrate.
There was a problem hiding this comment.
Well, the state is set to UNKNOWN in the initial setting, while it will be again updated once the task is submitted and it will change from UNKNOWN to QUEUE->RUNNING->COMPLETED once the background async tracking of the task starts.
There was a problem hiding this comment.
Okay, fine then :) I'll just merge then, so that you can go on. We can debug/refactor later, if needed.
There was a problem hiding this comment.
The same goes for the TESexecutor Logs (i.e, logs inside logs ), and logs outputs will update asynchronously, while the other things in logs will remain the same as set in here.
POST /tasks/{id}:cancelrelies on remote task id, this could be further fixed in Return execution trace in task log #123