Skip to content

Improve demo: support auto-discovery of node sources #21

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

Merged
merged 2 commits into from
May 6, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions demo_multi_job_node_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,15 @@
print("Creating a proactive job...")
job = gateway.createJob("demo_multi_job_node_source")

# Define specific node sources to target
node_sources = ["On-Prem-Server-Static-Nodes-TryDev2", "On-Prem-Server-Static-Nodes"]
# Specify which node sources to use for distributing the jobs.
# If left as None, the gateway will automatically discover and use all available node sources.
node_sources = None

# To target only specific node sources, uncomment and list them here:
# node_sources = [
# "On-Prem-Server-Static-Nodes-TryDev2", # e.g. your development cluster
# "On-Prem-Server-Static-Nodes" # e.g. your main on-premise nodes
# ]

# Create multiple jobs with Python tasks
jobs = []
Expand Down