Skip to content

Commit

Permalink
fix: changes batch samples to 1000 CPU millis (#4409)
Browse files Browse the repository at this point in the history
  • Loading branch information
telpirion authored Sep 27, 2024
1 parent e522327 commit 90fe340
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions batch/create_with_local_ssd.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ func createJobWithSSD(w io.Writer, projectID, jobName, ssdName string) error {

taskSpec := &batchpb.TaskSpec{
ComputeResource: &batchpb.ComputeResource{
// CpuMilli is milliseconds per cpu-second. This means the task requires 2 whole CPUs.
CpuMilli: 2000,
// CpuMilli is milliseconds per cpu-second. This means the task requires 1 CPU.
CpuMilli: 1000,
MemoryMib: 16,
},
MaxRunDuration: &durationpb.Duration{
Expand Down
4 changes: 2 additions & 2 deletions batch/create_with_persistent_disk.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ func createJobWithPD(w io.Writer, projectID, jobName, pdName string) error {

taskSpec := &batchpb.TaskSpec{
ComputeResource: &batchpb.ComputeResource{
// CpuMilli is milliseconds per cpu-second. This means the task requires 2 whole CPUs.
CpuMilli: 2000,
// CpuMilli is milliseconds per cpu-second. This means the task requires 1 CPU.
CpuMilli: 1000,
MemoryMib: 16,
},
MaxRunDuration: &durationpb.Duration{
Expand Down

0 comments on commit 90fe340

Please sign in to comment.