Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-jt79 authored Oct 14, 2021
1 parent 2b419c6 commit e4ac7c0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,9 @@ Mycluster can be used programatically using the mycluster module. All schedulers
import mycluster

# Detect the local scheduler
scheduler_name = mycluster.detect_scheduling_sys()
scheduler = mycluster.get_scheduler(scheduler_name)
scheduler = mycluster.detect_scheduling_sys()

print(f"Scheduler loaded: {scheduler.scheduler_type}")
print(f"Scheduler loaded: {scheduler.scheduler_type()}")

# Create a batch script to submit a 48 task run of script.sh to the skylake queue
script = scheduler.create("skylake", 48, "my_job", "script.sh", "01:00:00", tasks_per_node=24)
Expand Down

0 comments on commit e4ac7c0

Please sign in to comment.