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

Added has_gpus option inside the farmerbot module/script. #760

Merged
merged 3 commits into from
Jul 20, 2023

Conversation

Mahmoud-Emad
Copy link
Contributor

Description

Added has_gpus option inside the Farmerbot module/script.

Related Issues

Checklist

  • Tests included
  • Build pass
  • Documentation
  • Code format and docstrings
  • Screenshots/Video attached (needed for UI changes)

@@ -43,6 +43,7 @@ class FarmerBotFindNodeModel {
@Expose() @IsOptional() @IsBoolean() public_config?: boolean;
@Expose() @IsOptional() @Min(0) public_ips?: number;
@Expose() @IsOptional() @IsBoolean() certified?: boolean;
@Expose() @IsOptional() @Min(0) has_gpus?: number;
Copy link
Contributor

Choose a reason for hiding this comment

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

is it a bool or int?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This int based on Brandon's implementation here

Copy link
Contributor

@AhmedHanafy725 AhmedHanafy725 left a comment

Choose a reason for hiding this comment

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

the option is added to the farmer bot module, but it's not used in the capacity filter here

@AhmedHanafy725 AhmedHanafy725 merged commit e2e10e7 into development Jul 20, 2023
@AhmedHanafy725 AhmedHanafy725 deleted the development_farmerbot_gpu_support branch July 20, 2023 12:31
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