-
Notifications
You must be signed in to change notification settings - Fork 0
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
BXC-4688 add processingJobs field to list projects cmd #113
Conversation
ObjectNode velocicropterStatus = mapper.createObjectNode(); | ||
if (Files.exists(project.getProjectPath().resolve("processing/results/velocicroptor/job_completed"))) { | ||
velocicropterStatus.put(STATUS, COMPLETED); | ||
processingJobs.set("velocicropter", velocicropterStatus); |
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.
should be velocicroptor
rather than velocicropter
. Maybe we need a constant for it somewhere since it's a mouthful, maybe a JOB_NAME
constant in VelocicroptorRemoteJob that we should also use here https://github.com/UNC-Libraries/chompb/blob/main/src/main/java/edu/unc/lib/boxc/migration/cdm/ProcessSourceFilesCommand.java#L68
|
||
// velocicropter report status | ||
ObjectNode velocicropterStatus = mapper.createObjectNode(); | ||
if (Files.exists(project.getProjectPath().resolve("processing/results/velocicroptor/job_completed"))) { |
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.
we should use this constant for where to find the velocicroptor results, to make it easier to keep things synced:
https://github.com/UNC-Libraries/chompb/blob/main/src/main/java/edu/unc/lib/boxc/migration/cdm/jobs/VelocicroptorRemoteJob.java#L28
you can change it to public
objectNode.set("projectProperties", projectProperties); | ||
objectNode.set("processingJobs", processingJobs); |
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.
might as well make constants for both of these, since all the other top level keys have them
…roptorRemoteJob constants, fix spelling
https://unclibrary.atlassian.net/browse/BXC-4688
Add
processingJobs
field tolist_projects
command. Each job will have apending
orcompleted
status. Currently, the only job is velocicropter.