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

fix(public-api): fix Job.call() using the wrong keyword (queue vs queue_name) when calling launch_add. #4625

Merged
merged 2 commits into from
Dec 15, 2022

Conversation

TimH98
Copy link
Contributor

@TimH98 TimH98 commented Dec 14, 2022

Job uses queue_name keyword arg (instead of queue) when calling launch_add

Fixes WB-11748

Description

Fixes Job.call() using the wrong keyword (queue vs queue_name) when calling launch_add.

Testing

Unit test was added to verify Job.call(). Run tox -e pylaunch38 tests/unit_tests/tests_launch/test_job.py

@codecov
Copy link

codecov bot commented Dec 14, 2022

Codecov Report

Merging #4625 (140e4a1) into main (c783fa8) will increase coverage by 0.02%.
The diff coverage is n/a.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #4625      +/-   ##
==========================================
+ Coverage   83.20%   83.23%   +0.02%     
==========================================
  Files         279      279              
  Lines       34917    34917              
==========================================
+ Hits        29054    29063       +9     
+ Misses       5863     5854       -9     
Flag Coverage Δ
functest 56.08% <ø> (+0.02%) ⬆️
unittest 73.80% <ø> (+0.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
wandb/apis/public.py 81.96% <ø> (+0.09%) ⬆️
wandb/sdk/lib/git.py 77.71% <0.00%> (ø)
wandb/integration/tensorboard/monkeypatch.py 93.82% <0.00%> (+2.46%) ⬆️
wandb/sdk/internal/system/system_info.py 91.55% <0.00%> (+3.24%) ⬆️

Copy link
Contributor

@gtarpenning gtarpenning left a comment

Choose a reason for hiding this comment

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

Lets pop the queued run off the queue with the set queue_name to be 100% sure we handle the queue_name prop correctly.

Copy link
Contributor

@gtarpenning gtarpenning left a comment

Choose a reason for hiding this comment

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

lgtm

@TimH98 TimH98 merged commit 4c9654f into main Dec 15, 2022
@TimH98 TimH98 deleted the job-call-use-queue-name branch December 15, 2022 19:47
bcsherma pushed a commit that referenced this pull request Dec 19, 2022
…hen calling launch_add (#4625)

* fix(public-api): Job uses queue_name keyword arg (instead of queue) when calling launch_add
@kptkin kptkin changed the title fix(public-api): Job uses queue_name keyword arg (instead of queue) when calling launch_add fix(public-api): fix Job.call() using the wrong keyword (queue vs queue_name) when calling launch_add. Jan 5, 2023
@kptkin kptkin added this to the sdk-2023-01.1 milestone Jan 5, 2023
@github-actions github-actions bot added cc-fix and removed cc-fix labels Jan 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants