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

[BUG] client.experiments.jobs.create() returns a 500 internal server if user omits the "values" kwarg #711

Open
colton-lapp opened this issue Jan 14, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@colton-lapp
Copy link
Collaborator

colton-lapp commented Jan 14, 2025

Describe the bug
After successfully uploading an experiment, I was unable to create a job using default parameters without adding values={} in the client.experiments.jobs.create() method. Omitting values={} returns an internal server error 500 which was a little confusing to me.

To Reproduce
My current Jupter Notebook is very similar to Julian's here

In his cell block with this code:

job_time_limit = '1h'

training_job = client.experiments.jobs.create(
    experiment_id=experiment_id, 
    description=f"training job for {experiment_id}", 
    queue_id=queue_id,
    entrypoint_id=train_ep, 
    values={"epochs":"1"}, 
    timeout=job_time_limit
)

the bug should reproduce if you remove values={"epochs":"1"}

Expected behavior
If the values kwarg is not passed in, it should default to values={} probably?

Desktop:

  • OS: WSL2

Server

  • OS: Ubuntu
  • Virtualization: Docker
@colton-lapp colton-lapp added the bug Something isn't working label Jan 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant