The SIO2 project
  1. The SIO2 project
  2. SIO-2062

Provide a way to inspect sioworkersd queue

    Details

    • Type: Bug Bug
    • Status: Resolved Resolved
    • Priority: Major Major
    • Resolution: Obsolete
    • Affects Version/s: Current Version
    • Fix Version/s: None
    • Labels:
      None

      Description

      Sioworkersd keeps one or more queues of tasks, and groups of tasks, etc. in its internal state, which affects how the tasks are sent to workers and how the results are sent back to the requestor.

      To ease debugging and monitoring performance of sioworkersd, it's useful for admins to be able to inspect that state. There's already a manage.py command for that: `manage.py worker queue`, but it doesn't provide any useful information.

      The command calls `get_queue()` method of sioworkersd RPC API, which returns `unicode(scheduler)`. However, none of the schedulers implement __unicode__ in a meaningful way.
      The PrioritizingScheduler tries to stringify its queues, but they themselves don't provide a meaningful __unicode__. The FIFOScheduler seems to have its __unicode__ reference an undefined vraiable (possibly broken during refactoring), but I haven't tested it.

      Another thing to consider would be displaying the sioworkersd queue information in the worker management web interface of sio2.

        Activity

        Hide
        Szymon Acedański added a comment -
        This issue has been automatically closed as Obsolete due to no activity for 365 days.

        Feel free to reopen it or create a new one if it's still relevant.
        Show
        Szymon Acedański added a comment - This issue has been automatically closed as Obsolete due to no activity for 365 days. Feel free to reopen it or create a new one if it's still relevant.

          People

          • Assignee:
            Szymon Acedański
            Reporter:
            Wojciech Dubiel
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: