Skip to content

Commit 07477db

Browse files
tphung3btovar
authored andcommitted
fix field in wq task and C linking instruction (#3061)
1 parent 98f438a commit 07477db

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

doc/manuals/work_queue/index.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ If no task completes within the timeout, it returns null.
343343
print("Task {} has returned!".format(t.id))
344344

345345
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))
347347
print("stdout:\n{}".format(t.output))
348348
else:
349349
print("There was a problem executing the task.")
@@ -357,7 +357,7 @@ If no task completes within the timeout, it returns null.
357357
print("Task @{[$t->id]} has returned!\n");
358358

359359
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");
361361
print("stdout:\n@{[$t->{output}]}\n");
362362
} else {
363363
print("There was a problem executing the task.\n");
@@ -373,7 +373,7 @@ If no task completes within the timeout, it returns null.
373373
if(t) {
374374
printf("Task %d has returned!\n", t->taskid);
375375
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);
377377
printf("stdout: %s\n", t->output);
378378
} else {
379379
printf("There was a problem executing the task.\n");
@@ -512,7 +512,7 @@ $ export PERL5LIB=${HOME}/cctools/lib/perl5/site_perl:${PERL5LIB}
512512
If you are writing a Work Queue application in C, you should compile it into an executable like this:
513513

514514
```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
516516
```
517517

518518
### Running a Manager Program

0 commit comments

Comments
 (0)