-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Add function to get job status #96
Conversation
Thank you for creating this PR for job status APIs. We will look into this PR and discuss with you here. |
buildIndexedFileQueryString( fileIndex, | ||
"fileType", | ||
8U, | ||
queryString, | ||
&queryStringLength ); | ||
jsonResult = searchUintValue( jobDoc, | ||
jobDocLength, | ||
queryString, | ||
queryStringLength, | ||
&( result->fileType ) ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do not think that this is standard across all the job documents.
For example, here is a job doc from a job that I recently created:
{
"afr_ota": {
"protocols": [
"MQTT"
],
"streamname": "AFR_OTA-some-stream-name",
"files": [
{
"filepath": "NA",
"filesize": 624244,
"fileid": 0,
"certfile": "sss:00213243",
"update_data_url": null,
"auth_scheme": null,
"sig-sha256-ecdsa": "my-signature-goes-here"
}
]
}
}
@@ -941,4 +987,4 @@ size_t Jobs_GetJobDocument( const char * message, | |||
} | |||
|
|||
return jobDocLength; | |||
} | |||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add an empty line at the bottom of this file?
@@ -1005,4 +1013,4 @@ bool Jobs_IsJobUpdateStatus( const char * topic, | |||
#endif | |||
/* *INDENT-ON* */ | |||
|
|||
#endif /* ifndef JOBS_H_ */ | |||
#endif /* ifndef JOBS_H_ */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here too.
@Travis-Spidertracks can you please respond to the above questions and comments? This PR is quite stale. If we do not hear back from you, I will close the PR. Thanks |
@Travis-Spidertracks, I am closing this PR due to lack of activity. Please feel free to reopen the PR. |
Issue #, if available:
Description of changes:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.