@@ -62,10 +62,10 @@ When setting up a new job submission, it's important to test your job outside
62
62
of HTCondor before submitting into the Open Science Pool.
63
63
64
64
<pre class =" term " ><code >$ ./short.sh
65
- Start time: Wed Aug 21 09:21:35 CDT 2013
66
- Job is running on node: loginNN.osgconnect.net
67
- Job running as user: uid=54161(alice) gid=1000(users ) groups=1000(users),0(root),1001( osg-connect),1002 (osg-staff),1003 (osg-connect-test),9948(staff),19012(osgconnect )
68
- Job is running in directory: /home/alice/quickstart
65
+ Start time: Wed Aug 08 09:21:35 CDT 2023
66
+ Job is running on node: ap50.ux.osg-htc.org
67
+ Job running as user: uid=54161(alice), gid=5782(osg ) groups=5782( osg),5513 (osg.login-nodes),7158 (osg.OSG-Staff )
68
+ Job is running in directory: /home/alice/tutorial- quickstart
69
69
Working hard...
70
70
Science complete!
71
71
</code ></pre >
@@ -87,7 +87,7 @@ error = short.error
87
87
output = short.output
88
88
89
89
# This is the default category for jobs
90
- +JobDurationCategory = “ Medium”
90
+ +JobDurationCategory = " Medium"
91
91
92
92
# The below are good base requirements for first testing jobs on OSG,
93
93
# if you don't have a good idea of memory and disk usage.
@@ -114,21 +114,21 @@ Submitting job(s).
114
114
The ` condor_q ` command tells the status of currently running jobs.
115
115
116
116
<pre class =" term " ><code > $ condor_q
117
- -- Schedd: loginNN.osgconnect.net : <192.170.227.22:9618?... @ 12 /10/18 14:19:08
117
+ -- Schedd: ap50.ux.osg-htc.org : <192.170.227.22:9618?... @ 08 /10/23 14:19:08
118
118
OWNER BATCH_NAME SUBMITTED DONE RUN IDLE TOTAL JOB_IDS
119
- alice ID: 1441271 12 /10 14:18 _ 1 _ 1 1441271.0
119
+ alice ID: 1441271 08 /10 14:18 _ 1 _ 1 1441271.0
120
120
121
121
Total for query: 1 jobs; 0 completed, 0 removed, 0 idle, 1 running, 0 held, 0 suspended
122
122
Total for alice: 1 jobs; 0 completed, 0 removed, 0 idle, 1 running, 0 held, 0 suspended
123
123
Total for all users: 3001 jobs; 0 completed, 0 removed, 2189 idle, 754 running, 58 held, 0 suspended
124
124
</code ></pre >
125
125
126
- You can also get status on a specific job cluster:
126
+ You can also get the status of a specific job cluster:
127
127
128
128
<pre class =" term " ><code >$ condor_q 1441271
129
- -- Schedd: loginNN.osgconnect.net : <192.170.227.22:9618?... @ 12 /10/18 14:19:08
129
+ -- Schedd: ap50.ux.osg-htc.org : <192.170.227.22:9618?... @ 08 /10/23 14:19:08
130
130
OWNER BATCH_NAME SUBMITTED DONE RUN IDLE TOTAL JOB_IDS
131
- alice ID: 1441271 12 /10 14:18 _ 1 _ 1 1441271.0
131
+ alice ID: 1441271 08 /10 14:18 _ 1 _ 1 1441271.0
132
132
133
133
Total for query: 1 jobs; 0 completed, 0 removed, 0 idle, 1 running, 0 held, 0 suspended
134
134
Total for alice: 1 jobs; 0 completed, 0 removed, 0 idle, 1 running, 0 held, 0 suspended
@@ -155,9 +155,6 @@ $ condor_watch_q
155
155
156
156
* Note* : To close condor_watch_q, hold down ` Ctrl ` and press C.
157
157
158
-
159
- When your job has completed, it will disappear from the output of ` condor_q `
160
-
161
158
### View job history
162
159
163
160
Once your job has finished, you can get information about its execution
@@ -167,7 +164,7 @@ returns, as shown below:
167
164
168
165
<pre class =" term " ><code >$ condor_history alice -limit 1
169
166
ID OWNER SUBMITTED RUN_TIME ST COMPLETED CMD
170
- 1441272.0 alice 12 /10 14:18 0+00:00:29 C 12 /10 14:19 /home/alice/tutorial-quickstart/short.sh
167
+ 1441272.0 alice 08 /10 14:18 0+00:00:29 C 08 /10 14:19 /home/alice/tutorial-quickstart/short.sh
171
168
</code ></pre >
172
169
173
170
* Note* : You can see much more information about your job's final status
@@ -186,7 +183,7 @@ submit file. If everything was successful, it should have returned:
186
183
Read the output file. It should be something like this:
187
184
188
185
<pre class =" term " ><code >$ cat short.output
189
- Start time: Mon Dec 10 20:18:56 UTC 2018
186
+ Start time: Mon Aug 10 20:18:56 UTC 2023
190
187
Job is running on node: osg-84086-0-cmswn2030.fnal.gov
191
188
Job running as user: uid=12740(osg) gid=9652(osg) groups=9652(osg)
192
189
Job is running in directory: /srv
@@ -209,7 +206,8 @@ losing our original script, we make a copy of the file under the name `short_tra
209
206
210
207
<pre class =" term " ><code >$ cp short.sh short_transfer.sh</code ></pre >
211
208
212
- Now, edit the file to include the added lines below:
209
+ Now, edit the file to include the added lines below or use ` cat ` to view the
210
+ existing ` short_transfer.sh ` file:
213
211
214
212
<pre class =" file " ><code >#!/bin/bash
215
213
# short_transfer.sh: a short discovery job
@@ -222,7 +220,8 @@ printf "Job number is" $2
222
220
printf "Contents of $1 is "; cat $1
223
221
cat $1 > output$2.txt
224
222
echo
225
- echo "Working hard...als -l $PWD
223
+ echo "Working hard...
224
+ ls -l $PWD
226
225
sleep 20
227
226
echo "Science complete!"
228
227
</code ></pre >
@@ -241,10 +240,12 @@ Once again, before submitting our job we should test it locally to ensure it run
241
240
242
241
<pre class =" term " ><code >$ ./short_transfer.sh input.txt
243
242
Start time: Tue Dec 11 10:19:12 CST 2018
244
- Job is running on node: loginNN.osgconnect.net
245
- Job running as user: uid=100279 (alice) gid=1000(users ) groups=1000(users),5532(connect),5782( osg),7021 (osg.ConnectTrain )
243
+ Job is running on node: ap50.ux.osg-htc.org
244
+ Job running as user: uid=54161 (alice), gid=5782(osg ) groups=5782(osg),5513( osg.login-nodes),7158 (osg.OSG-Staff )
246
245
Job is running in directory: /home/alice/tutorial-quickstart
247
- The command line argument is: Contents of input.txt is "Hello World"Working hard...total 28
246
+ The command line argument is: Contents of input.txt is "Hello World"
247
+ Working hard
248
+ total 28
248
249
drwxrwxr-x 2 alice users 34 Oct 15 09:37 Images
249
250
-rw-rw-r-- 1 alice users 13 Oct 15 09:37 input.txt
250
251
drwxrwxr-x 2 alice users 114 Dec 11 09:50 log
@@ -272,7 +273,7 @@ log = job.log
272
273
error = job.error
273
274
output = job.output
274
275
275
- +JobDurationCategory = “ Medium”
276
+ +JobDurationCategory = " Medium"
276
277
277
278
request_cpus = 1
278
279
request_memory = 1 GB
@@ -320,7 +321,7 @@ log = log/job.$(Cluster).log
320
321
error = log/job.$(Cluster).$(Process)error
321
322
output = log/job.$(Cluster).$(Process).output
322
323
323
- +JobDurationCategory = “ Medium”
324
+ +JobDurationCategory = " Medium"
324
325
325
326
request_cpus = 1
326
327
request_memory = 1 GB
0 commit comments