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

        Connect your code to JIRA

        Link every code change to JIRA just by adding an issue keys in commit messages. Bridge the gap back to your source and know which changes fixed which JIRA issues.

        Git & Mercurial in the cloud

        Collaborate across unlimited private code repositories.

        Git behind the firewall

        Manage and collaborate on Git repositories behind a firewall.

        Browse and search code

        Browse, search, and track source code repositories.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: