lovell / lovell/sharp

Enhancement: signal to end processing early e.g. via AbortController API

Open
#4,326 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
JavaScript
Stars
32.7k
Forks
1.4k
Avg merge
1d 14h
Merged PRs (30d)
5

Description

I couldn't find anything in the docs or in the repo except for the timeout option. However, I'd like to kill the process while it's still happening (for example, if the user requests the process to be stopped, I would like to free up the memory).

I've noticed that there's `_vips_shutdown()` being used internally and I wonder if this function does the above?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the timeout option in the documentation and repository, then trace the internal use of _vips_shutdown(). The issue needs a defined early-cancellation behavior, including whether an AbortController-style API is appropriate and how processing and memory cleanup should be verified.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js
Domain
backend, performance
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.