Cooperative Cancellation of a Task

A cancellation request can ask an ongoing operation to stop at a point where its state remains valid and cleanup is still possible.

Source
Anbloq
Language
English
Created
Updated
Chapters
2
Reading time
1 min
In this article2 chapters
  1. Choose when to check
  2. Report the final status

Choose when to check

A batch creating many small reports can check between files so one completed report is left intact. Checking halfway through direct publication may expose a partial file. See complete file replacement.

Report the final status

Requesting cancellation is distinct from confirming the operation stopped. Record what completed and which work was skipped. Partial-success tracking describes why those outcomes matter.[1]

References

  1. Python Software Foundation, Python Tutorial: Errors and Exceptions ↩