-
Notifications
You must be signed in to change notification settings - Fork 15
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 : added state update worker #36
Conversation
|
||
Ok(self | ||
.get_job_collection() | ||
.find_one(filter, find_options) |
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 index collections
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.
will create the issue for this.
let existing_job = config | ||
.database() | ||
.get_job_by_internal_id_and_type(&job.internal_id, &JobType::StateTransition) |
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 can remove this
|
||
let successful_proving_jobs = config | ||
.database() | ||
.get_completed_jobs_after_internal_id_by_job_type( |
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.
let's move completed to an argument itself
} | ||
} | ||
|
||
pub fn get_job_by_mock_id_vector( |
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.
let's add a comment on this
)) | ||
}); | ||
|
||
// mocking getting of the jobs |
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.
let's add a comment on where this check happens
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 guess this is pending?
lcov.info
Outdated
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.
does this file need to be in a .gitignore?
)) | ||
}); | ||
|
||
// mocking getting of the jobs |
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 guess this is pending?
* feat : added state update worker * feat : fixed tests and updated worker code * refactor and added some comments
No description provided.