You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Job Details (for more properties see HPC Web Service API at https://docs.microsoft.com/en-us/previous-versions/windows/desktop/hh560265(v=vs.85)#remarks)
28
+
# -----------
29
+
# Job Name:
30
+
JobName="[MyHPC Job]"
31
+
# JobTemplate: Default
32
+
JobTemplate="Default"
33
+
# Project:
34
+
Project="[MyHPC Project]"
35
+
# Priority: Lowest, BelowNormal, Normal
36
+
Priority="Normal"
37
+
# Send email notifications to:
38
+
EmailAddress="[name@domain.com]"
39
+
## Job resources
40
+
# Select the type of resource to request for this job: Core, Node, Socket, GPU
41
+
UnitType="Core"
42
+
43
+
# Specify tasks for this job:
44
+
# ---------------------------
45
+
# Tasks (for more properties see HPC Web Service API at https://docs.microsoft.com/en-us/previous-versions/windows/desktop/hh560262(v=vs.85)#remarks)
# Job Details (for more properties see HPC Web Service API at https://docs.microsoft.com/en-us/previous-versions/windows/desktop/hh560265(v=vs.85)#remarks)
79
+
# -----------
80
+
# Job Name:
81
+
job.properties["Name"] =JobName
82
+
# JobTemplate:
83
+
job.properties["JobTemplate"] =JobTemplate
84
+
# Project:
85
+
job.properties["Project"] =Project
86
+
# Priority:
87
+
job.properties["Priority"] =Priority
88
+
# Send email notifications to:
89
+
job.properties["EmailAddress"] =EmailAddress
90
+
91
+
## Job resources
92
+
# Select the type of resource to request for this job:
93
+
job.properties["UnitType"] =UnitType
94
+
# Enter the minimum and/or maximum of the selected resource type that this job is allowed to use:
95
+
# Minimum:
96
+
#job.properties[""] = ""
97
+
# Maximum:
98
+
#job.properties[""] = ""
99
+
100
+
# Instantiate job on the server
101
+
print ('Creating job on the server...')
102
+
job.create()
103
+
104
+
# Create task
105
+
task=job.create_task()
106
+
107
+
# Specify tasks for this job:
108
+
# ---------------------------
109
+
# Tasks (for more properties see HPC Web Service API at https://docs.microsoft.com/en-us/previous-versions/windows/desktop/hh560262(v=vs.85)#remarks)
0 commit comments