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 : added state update worker #36

Merged
merged 3 commits into from
Jul 17, 2024
Merged

Conversation

ocdbytes
Copy link
Member

No description provided.


Ok(self
.get_job_collection()
.find_one(filter, find_options)
Copy link
Contributor

Choose a reason for hiding this comment

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

we should index collections

Copy link
Member Author

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.

Comment on lines 34 to 36
let existing_job = config
.database()
.get_job_by_internal_id_and_type(&job.internal_id, &JobType::StateTransition)
Copy link
Contributor

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(
Copy link
Contributor

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(
Copy link
Contributor

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
Copy link
Contributor

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

Copy link
Contributor

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
Copy link
Contributor

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
Copy link
Contributor

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?

@ocdbytes ocdbytes merged commit 33a12b5 into main Jul 17, 2024
6 of 7 checks passed
ocdbytes added a commit that referenced this pull request Oct 16, 2024
* feat : added state update worker

* feat : fixed tests and updated worker code

* refactor and added some comments
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.

2 participants