Skip to content
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

Closed
wants to merge 2 commits into from

Conversation

Travis-Spidertracks
Copy link

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.

@Travis-Spidertracks Travis-Spidertracks changed the title feat: Add command to get stream feat: Add function to get job status Mar 3, 2024
@chinglee-iot chinglee-iot requested review from AniruddhaKanhere and removed request for AniruddhaKanhere March 6, 2024 07:57
@chinglee-iot
Copy link
Member

Thank you for creating this PR for job status APIs. We will look into this PR and discuss with you here.

Comment on lines +229 to +238
buildIndexedFileQueryString( fileIndex,
"fileType",
8U,
queryString,
&queryStringLength );
jsonResult = searchUintValue( jobDoc,
jobDocLength,
queryString,
queryStringLength,
&( result->fileType ) );
Copy link
Member

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;
}
}
Copy link
Member

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_ */
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here too.

@AniruddhaKanhere
Copy link
Member

@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

@AniruddhaKanhere
Copy link
Member

@Travis-Spidertracks, I am closing this PR due to lack of activity. Please feel free to reopen the PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants