@@ -343,7 +343,7 @@ If no task completes within the timeout, it returns null.
343
343
print("Task {} has returned!".format(t.id))
344
344
345
345
if t.return_status == 0:
346
- print("command exit code:\n{}".format(t.exit_code ))
346
+ print("command exit code:\n{}".format(t.return_status ))
347
347
print("stdout:\n{}".format(t.output))
348
348
else:
349
349
print("There was a problem executing the task.")
@@ -357,7 +357,7 @@ If no task completes within the timeout, it returns null.
357
357
print("Task @{[ $t->id] } has returned!\n");
358
358
359
359
if($t->{return_status} == 0) {
360
- print("command exit code:\n@{[$t->{exit_code }]}\n");
360
+ print("command exit code:\n@{[$t->{return_status }]}\n");
361
361
print("stdout:\n@{[$t->{output}]}\n");
362
362
} else {
363
363
print("There was a problem executing the task.\n");
@@ -373,7 +373,7 @@ If no task completes within the timeout, it returns null.
373
373
if(t) {
374
374
printf("Task %d has returned!\n", t->taskid);
375
375
if(t->return_status == 0) {
376
- printf("command exit code: %d\n", t->exit_code );
376
+ printf("command exit code: %d\n", t->return_status );
377
377
printf("stdout: %s\n", t->output);
378
378
} else {
379
379
printf("There was a problem executing the task.\n");
@@ -512,7 +512,7 @@ $ export PERL5LIB=${HOME}/cctools/lib/perl5/site_perl:${PERL5LIB}
512
512
If you are writing a Work Queue application in C, you should compile it into an executable like this:
513
513
514
514
``` sh
515
- $ gcc work_queue_example.c -o work_queue_example -I${HOME} /cctools/include/cctools -L${HOME} /cctools/lib -lwork_queue -ldttools -lm -lz
515
+ $ gcc work_queue_example.c -o work_queue_example -I${HOME} /cctools/include/cctools -L${HOME} /cctools/lib -lwork_queue -ldttools -lcrypto -lssl - lm -lz
516
516
```
517
517
518
518
### Running a Manager Program
0 commit comments