Go2Proxy
Products
Pricing$1.11/GB
Cases
Locations
Resources

Proxy Jobs That Keep Running After Cancellation

Go2proxy
2026-11-25

A user-facing cancellation button can return immediately while background requests continue. The visible status and the execution state are separate facts. Teams integrating Go2Proxy proxy endpoints should trace cancellation through the worker, request client and output writer. The goal is a defined stopping boundary with honest accounting, rather than a dashboard that says cancelled while new observations still appear under the same task.

Go2Proxy homepage introducing residential proxies for data collection

Define what cancellation promises

Specify whether cancellation stops work that has not started, signals active requests to end or waits for a safe output boundary. Different clients and operations support different stopping behavior.

Keep that contract explicit in the interface and operational records. A cancellation request is not proof that every network operation has already stopped. Report requested, stopping and finished states where those distinctions affect resource use or downstream interpretation.

Pass the signal to the actual owner

Trace which component owns the queue entry, network operation, connection pool and result write. Signalling only the top-level handler can leave a subprocess or independent client running without the original task's lifecycle controls.

The timeout diagnosis guide explains why a task deadline and individual connection limits serve different purposes. Cancellation should work alongside those bounds so an ignored signal does not allow a stalled operation to continue indefinitely.

Decide what happens to partial output

A cancelled operation may already have produced validated records. Decide whether they remain a clearly partial dataset, are withheld until a complete unit is available or follow another documented policy.

Do not label a partial run complete simply because its output file can be opened. Preserve the coverage state and task identifier. A later resumed or replacement run should not silently combine incompatible visitor conditions or duplicate already accepted records.

Exercise a slow owned endpoint

Use a controlled slow response and cancel the logical task while the request is active. Observe whether the request client receives the signal, whether queued follow-up work starts and whether connection resources are released as intended.

Separately cancel before execution and just before a valid result is committed. These cases test different ownership boundaries. A single successful cancellation during an idle queue does not demonstrate that an active network operation behaves correctly.

Count the work that actually happened

Record requests that were attempted before stopping, accepted outputs and any cleanup failures. Cancelled work can still have consumed traffic or execution time, so deleting it from operational totals can distort cost and performance reports.

When a client cannot interrupt a specific operation immediately, state the fallback boundary and remaining maximum duration. Verify that result handling still prevents unexpected late writes from appearing as current, complete observations.

Frequently asked questions

Does a cancelled status prove the socket closed?

No. Confirm execution behavior at the relevant client and worker boundary. The status may only record that a cancellation request was accepted.

Should completed records from a cancelled task be discarded?

Follow the dataset policy. Useful partial records may be retained if their coverage and task state remain explicit; avoid presenting them as a complete run.

Can timeouts replace cancellation?

They provide a bound but do not necessarily implement the requested stopping behavior. Use both mechanisms deliberately and verify their interaction.

Before the next run

Repeat active, queued and commit-boundary cancellation cases after changes to request clients, job orchestration or output ownership.

Start a free proxy trial
Contact us