You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I was having issues with some devices that took too long to process a batch job request. The devices answered around 40 seconds after receiving the request. To solve this, I increased the timeout of the step to 60 seconds. However, now the response reaches Kapua within the timeout, avoiding the PROCESS_FAILURE status, but never reaches PROCESS_OK. The step gets stuck in AWAITING_COMPLETION
To Reproduce
Steps to reproduce the behavior:
Create a batch job and step with a large timeout (40 or 60 seconds)
Execute the job
The step enters PROCESS_AWAITING status
Delay the response from the device over the 30 seconds mark
The batch job will go to AWAITING_COMPLETION but never PROCESS_OK
Expected behavior
The job, and step, should progress towards PROCESS_OK
Version of Kapua
1.6.12
Type of deployment
[x] Docker
Additional context
According to the documentation on the source, the status seem to be working wrong all along:
If I understand right, the status sequence should be:
Start the job
PROCESS_AWAITING
Send request to device
AWAITING_COMPLETION
Receive response from device
NOTIFIED_COMPLETION
Process response and select the next status
PROCESS_OK or PROCESS_FAILURE
Alternatively, if the device never answers, the status changes from AWAITING_COMPLETION to PROCESS_FAILURE
However, the sequence actually seems to be:
Start the job
PROCESS_AWAITING
Send request to device
Still PROCESS_AWAITING
Receive response from device
AWAITING_COMPLETION
_Process response and select the next status
PROCESS_OK or PROCESS_FAILURE
Or something similar. Also confusingly affected by the modification of the timeout
Is there any place where the workflow is clearly documented and defined?
The text was updated successfully, but these errors were encountered:
Never mind the initial error, it seems that it was due to be a deploy/download request, which waited for the device to execute that additional task. It may be useful some documentation about it though
Describe the bug
I was having issues with some devices that took too long to process a batch job request. The devices answered around 40 seconds after receiving the request. To solve this, I increased the timeout of the step to 60 seconds. However, now the response reaches Kapua within the timeout, avoiding the PROCESS_FAILURE status, but never reaches PROCESS_OK. The step gets stuck in AWAITING_COMPLETION
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The job, and step, should progress towards PROCESS_OK
Version of Kapua
1.6.12
Type of deployment
[x] Docker
Additional context
According to the documentation on the source, the status seem to be working wrong all along:
If I understand right, the status sequence should be:
PROCESS_AWAITING
AWAITING_COMPLETION
NOTIFIED_COMPLETION
PROCESS_OK
orPROCESS_FAILURE
Alternatively, if the device never answers, the status changes from
AWAITING_COMPLETION
toPROCESS_FAILURE
However, the sequence actually seems to be:
PROCESS_AWAITING
PROCESS_AWAITING
AWAITING_COMPLETION
PROCESS_OK
orPROCESS_FAILURE
Or something similar. Also confusingly affected by the modification of the timeout
Is there any place where the workflow is clearly documented and defined?
The text was updated successfully, but these errors were encountered: