Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Remove scheduled requests based on requestor #11147

Closed

Description

@tobrun

This feature request would solve the issue shown in #11123 and thus our flaky tests on CI. The issue we have in #11123 stems from using an unified filesource with multiple maps. Having the ability to remove/cancel request based on the requestor (a map instance or an offline download) would allow the binding to have more control over the request queue. One way to implement this is to add a tag to every request that functions as an unique id to the requestor. Exposing an api to clear the queue based on this id would give the binding the required hook.

Not sure if this is the way forward, feel free to close if not.

Activity

  1. added
    Core
    on Feb 8, 2018
  2. jfirebaugh commented on May 18, 2018

    @jfirebaugh
    Contributor

    FileSource already implements cancellation -- the result of the request method is an owned object which will cancel the request when it's destroyed, and destroying a map will eventually trigger destroying all its owned requests. So tracking down #11123 will more involve an investigation of why the cancellation mechanism isn't as effective as we want.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Corefeature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions