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

Add more information to Job entity #18

Merged
merged 32 commits into from
Apr 15, 2024
Merged

Add more information to Job entity #18

merged 32 commits into from
Apr 15, 2024

Conversation

lotif
Copy link
Collaborator

@lotif lotif commented Apr 10, 2024

PR Type

Feature

Short Description

Clickup Ticket(s): https://app.clickup.com/t/86884uzxg

Adding more information to Job entity, namely status, clients info, server info and server address.

Server info has to be JSON-parseable. We will use that in the future to get all parameters for the server, which can change depending on what the server implements.

To test this, you can do a setup similar to #16 but the request body can be changed to this:

{
    "model": "MNIST",
    "redis_host": "locahost",
    "redis_port": "6879",
    "server_info": "{\"n_server_rounds\": 8, \"batch_size\": 8, \"local_epochs\": 5}",
    "clients_info": [
        {
            "client": "MNIST",
            "service_address": "localhost:8081",
            "data_path": "/Users/marcelolotif/Downloads/test",
            "redis_host": "localhost",
            "redis_port": "6380" 
        }
    ]
}

Tests Added

florist/tests/integration/api/routes/server/test_job.py::test_new_job_fail_bad_server_info

@lotif lotif requested review from jewelltaylor and emersodb April 10, 2024 18:41
Base automatically changed from setup-db to main April 12, 2024 19:18
lotif added 2 commits April 12, 2024 15:47
# Conflicts:
#	florist/api/db/entities.py
#	florist/api/routes/server/job.py
#	florist/tests/integration/api/routes/server/test_job.py
Copy link
Collaborator

@jewelltaylor jewelltaylor left a comment

Choose a reason for hiding this comment

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

Looks good to me!

@jewelltaylor jewelltaylor merged commit 74851d2 into main Apr 15, 2024
4 checks passed
@jewelltaylor jewelltaylor deleted the job-add-info branch April 15, 2024 21:23
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