Skip to content

Commit

Permalink
Merge branch 'master' of github.com:zenotech/MyCluster
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-jt79 committed Oct 15, 2021
2 parents 6656d5d + 4050529 commit 6081302
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# MyCluster
[![PyPI version fury.io](https://badge.fury.io/py/pyepic.svg)](https://pypi.python.org/pypi/MyCluster/)
[![PyPI version](https://badge.fury.io/py/mycluster.svg)](https://badge.fury.io/py/mycluster)

Library and command line interface to support interacting with multiple HPC clusters

Expand Down 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 6081302

Please sign in to comment.