Droids
  1. Droids
  2. DROIDS-48

Support prioritizing in the TaskQueue

    Details

    • Type: New Feature New Feature
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 0.1.0
    • Fix Version/s: None
    • Component/s: core
    • Labels:
      None

      Description

      Use case:

      • when looping a directory, (imagine someone is too stupid and dunno the dmoz database can be downloaded and try to crawl it with Droids) we got collect a lot of links that will be handled later. assume the requirement is to fetch dmoz directory +1 link outside dmoz.org, In the original mechanism, it will keep adding new links to the TaskQueue. Ideally, there should be a mechanism to give a higher priority to the non-dmoz.org links, so when non-dmoz links are added, they are processed first, and be removed from the TaskQueue asap.

      with the patch in DROIDS-47, a constructor is added to the SimpleTaskQueue to support a custom Queue. This issue suggests to change the SimpleTaskQueue to use a PriorityBlockingQueue by default, and add a getWeight to the Task interface

      I'm also thinking about a more complex TaskQueue. to be discussed in the mail list later.

      1. DROIDS-48d.patch
        9 kB
        Mingfai Ma
      2. DROIDS-48d2.patch
        3 kB
        Mingfai Ma

        Activity

        Mingfai Ma made changes -
        Attachment DROIDS-48c.patch [ 12405878 ]
        Mingfai Ma made changes -
        Attachment DROIDS-48b.patch [ 12405873 ]
        Mingfai Ma made changes -
        Attachment DROIDS-48d2.patch [ 12409387 ]
        Mingfai Ma made changes -
        Attachment DROIDS-48d.patch [ 12408471 ]
        Mingfai Ma made changes -
        Attachment DROIDS-48c.patch [ 12405878 ]
        Mingfai Ma made changes -
        Attachment DROIDS-48.patch [ 12405872 ]
        Mingfai Ma made changes -
        Attachment DROIDS-48b.patch [ 12405873 ]
        Mingfai Ma made changes -
        Field Original Value New Value
        Attachment DROIDS-48.patch [ 12405872 ]
        Mingfai Ma created issue -

          People

          • Assignee:
            Unassigned
            Reporter:
            Mingfai Ma
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:

              Development