Skip to content

Commit e535b17

Browse files
Doc
1 parent acc4301 commit e535b17

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ For long-running scripts that process many nodes, it's important to support grac
429429
```groovy
430430
void doRun() {
431431
repo.queryRaw("SELECT * FROM [nt:base] WHERE ISDESCENDANTNODE('/content/acme/us/en')").forEach { resource ->
432-
// Check for abort at appropriate safe points (loop, recursion, etc.)
432+
// Safe point
433433
context.checkAborted()
434434
435435
// Process resource
@@ -445,11 +445,11 @@ void doRun() {
445445
def assets = repo.queryRaw("SELECT * FROM [dam:Asset] WHERE ISDESCENDANTNODE('/content/dam')").iterator()
446446
for (asset in assets) {
447447
if (context.isAborted()) {
448-
// do clean up if needed
448+
// Do clean when aborted
449449
break
450450
}
451451
}
452-
// still remember to propagate abort status
452+
// Still remember to propagate abort status
453453
context.checkAborted()
454454
}
455455
```

0 commit comments

Comments
 (0)