{"action":"created","comment":{"url":"https://api.github.com/repos/dmwm/WMCore/pulls/comments/52202512","id":52202512,"diff_hunk":"@@ -0,0 +1,47 @@\n+#!/usr/bin/env python\n+\"\"\"\n+    WorkQueueElement unit tests\n+\"\"\"\n+from __future__ import print_function\n+import unittest\n+from WMCore.Wrappers import JsonWrapper\n+from WMCore.WorkQueue.DataStructs.WorkQueueElementsSummary import WorkQueueElementsSummary","path":"test/python/WMCore_t/WorkQueue_t/DataStructs_t/WorkQueueElementsSummary_t.py","position":8,"original_position":8,"commit_id":"af1bd607f8b610b13cfc6f0cd02ade8899244a2b","original_commit_id":"bbb294e884702cdaa38aaacf57e848d17a684192","user":{"login":"ticoann","id":1247993,"avatar_url":"https://avatars.githubusercontent.com/u/1247993?v=3","gravatar_id":"","url":"https://api.github.com/users/ticoann","html_url":"https://github.com/ticoann","followers_url":"https://api.github.com/users/ticoann/followers","following_url":"https://api.github.com/users/ticoann/following{/other_user}","gists_url":"https://api.github.com/users/ticoann/gists{/gist_id}","starred_url":"https://api.github.com/users/ticoann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ticoann/subscriptions","organizations_url":"https://api.github.com/users/ticoann/orgs","repos_url":"https://api.github.com/users/ticoann/repos","events_url":"https://api.github.com/users/ticoann/events{/privacy}","received_events_url":"https://api.github.com/users/ticoann/received_events","type":"User","site_admin":false},"body":"Thanks for got to add new class. It is added now.","created_at":"2016-02-08T18:04:15Z","updated_at":"2016-02-08T18:04:15Z","html_url":"https://github.com/dmwm/WMCore/pull/6559#discussion_r52202512","pull_request_url":"https://api.github.com/repos/dmwm/WMCore/pulls/6559","_links":{"self":{"href":"https://api.github.com/repos/dmwm/WMCore/pulls/comments/52202512"},"html":{"href":"https://github.com/dmwm/WMCore/pull/6559#discussion_r52202512"},"pull_request":{"href":"https://api.github.com/repos/dmwm/WMCore/pulls/6559"}}},"pull_request":{"url":"https://api.github.com/repos/dmwm/WMCore/pulls/6559","id":58200332,"html_url":"https://github.com/dmwm/WMCore/pull/6559","diff_url":"https://github.com/dmwm/WMCore/pull/6559.diff","patch_url":"https://github.com/dmwm/WMCore/pull/6559.patch","issue_url":"https://api.github.com/repos/dmwm/WMCore/issues/6559","number":6559,"state":"open","locked":false,"title":"Workqueue resource monitor","user":{"login":"ticoann","id":1247993,"avatar_url":"https://avatars.githubusercontent.com/u/1247993?v=3","gravatar_id":"","url":"https://api.github.com/users/ticoann","html_url":"https://github.com/ticoann","followers_url":"https://api.github.com/users/ticoann/followers","following_url":"https://api.github.com/users/ticoann/following{/other_user}","gists_url":"https://api.github.com/users/ticoann/gists{/gist_id}","starred_url":"https://api.github.com/users/ticoann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ticoann/subscriptions","organizations_url":"https://api.github.com/users/ticoann/orgs","repos_url":"https://api.github.com/users/ticoann/repos","events_url":"https://api.github.com/users/ticoann/events{/privacy}","received_events_url":"https://api.github.com/users/ticoann/received_events","type":"User","site_admin":false},"body":"using \r\n[gloabqueue instance].status(\"Available\")\r\n\r\nIt can retrieve workqueue element information which has higher priority (or equal) within the same site group.\r\n\r\ni.e.\r\n```\r\nFor this workflow,\r\nSites for riahi_TEST_HELIX_0911-T1_UK_RALBackfill_151119_190209_6101: priority 50000, set(['T1_UK_RAL'])\r\n\r\nThere are few workflow ahead of this for given site.\r\n\r\nriahi_TEST_HELIX_0911-T1_UK_RALBackfill_151209_220229_2632: priority: 90000 job: 10010 sites: \r\nset(['T1_UK_RAL'])\r\nriahi_TEST_HELIX_0911-T1_UK_RALBackfill_151123_214806_3068: priority: 90000 job: 10010 sites: set(['T1_UK_RAL'])\r\n```\r\n\r\nStill need to be refined.\r\n1. factor in creation time.\r\n2.  Need to define what we should do when there are different blocks in the same workflow which has different site restriction.\r\n","created_at":"2016-02-03T21:05:22Z","updated_at":"2016-02-08T18:04:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"08eaf6b758f5d27e4bcb66cc25da77624316b437","assignee":{"login":"ticoann","id":1247993,"avatar_url":"https://avatars.githubusercontent.com/u/1247993?v=3","gravatar_id":"","url":"https://api.github.com/users/ticoann","html_url":"https://github.com/ticoann","followers_url":"https://api.github.com/users/ticoann/followers","following_url":"https://api.github.com/users/ticoann/following{/other_user}","gists_url":"https://api.github.com/users/ticoann/gists{/gist_id}","starred_url":"https://api.github.com/users/ticoann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ticoann/subscriptions","organizations_url":"https://api.github.com/users/ticoann/orgs","repos_url":"https://api.github.com/users/ticoann/repos","events_url":"https://api.github.com/users/ticoann/events{/privacy}","received_events_url":"https://api.github.com/users/ticoann/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/dmwm/WMCore/milestones/121","html_url":"https://github.com/dmwm/WMCore/milestones/WMAgent1602","labels_url":"https://api.github.com/repos/dmwm/WMCore/milestones/121/labels","id":1335173,"number":121,"title":"WMAgent1602","description":"","creator":{"login":"ticoann","id":1247993,"avatar_url":"https://avatars.githubusercontent.com/u/1247993?v=3","gravatar_id":"","url":"https://api.github.com/users/ticoann","html_url":"https://github.com/ticoann","followers_url":"https://api.github.com/users/ticoann/followers","following_url":"https://api.github.com/users/ticoann/following{/other_user}","gists_url":"https://api.github.com/users/ticoann/gists{/gist_id}","starred_url":"https://api.github.com/users/ticoann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ticoann/subscriptions","organizations_url":"https://api.github.com/users/ticoann/orgs","repos_url":"https://api.github.com/users/ticoann/repos","events_url":"https://api.github.com/users/ticoann/events{/privacy}","received_events_url":"https://api.github.com/users/ticoann/received_events","type":"User","site_admin":false},"open_issues":15,"closed_issues":1,"state":"open","created_at":"2015-10-02T16:27:19Z","updated_at":"2016-02-08T17:36:39Z","due_on":"2016-02-29T06:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/dmwm/WMCore/pulls/6559/commits","review_comments_url":"https://api.github.com/repos/dmwm/WMCore/pulls/6559/comments","review_comment_url":"https://api.github.com/repos/dmwm/WMCore/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dmwm/WMCore/issues/6559/comments","statuses_url":"https://api.github.com/repos/dmwm/WMCore/statuses/af1bd607f8b610b13cfc6f0cd02ade8899244a2b","head":{"label":"ticoann:workqueue_resource_monitor","ref":"workqueue_resource_monitor","sha":"af1bd607f8b610b13cfc6f0cd02ade8899244a2b","user":{"login":"ticoann","id":1247993,"avatar_url":"https://avatars.githubusercontent.com/u/1247993?v=3","gravatar_id":"","url":"https://api.github.com/users/ticoann","html_url":"https://github.com/ticoann","followers_url":"https://api.github.com/users/ticoann/followers","following_url":"https://api.github.com/users/ticoann/following{/other_user}","gists_url":"https://api.github.com/users/ticoann/gists{/gist_id}","starred_url":"https://api.github.com/users/ticoann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ticoann/subscriptions","organizations_url":"https://api.github.com/users/ticoann/orgs","repos_url":"https://api.github.com/users/ticoann/repos","events_url":"https://api.github.com/users/ticoann/events{/privacy}","received_events_url":"https://api.github.com/users/ticoann/received_events","type":"User","site_admin":false},"repo":{"id":2935076,"name":"WMCore","full_name":"ticoann/WMCore","owner":{"login":"ticoann","id":1247993,"avatar_url":"https://avatars.githubusercontent.com/u/1247993?v=3","gravatar_id":"","url":"https://api.github.com/users/ticoann","html_url":"https://github.com/ticoann","followers_url":"https://api.github.com/users/ticoann/followers","following_url":"https://api.github.com/users/ticoann/following{/other_user}","gists_url":"https://api.github.com/users/ticoann/gists{/gist_id}","starred_url":"https://api.github.com/users/ticoann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ticoann/subscriptions","organizations_url":"https://api.github.com/users/ticoann/orgs","repos_url":"https://api.github.com/users/ticoann/repos","events_url":"https://api.github.com/users/ticoann/events{/privacy}","received_events_url":"https://api.github.com/users/ticoann/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ticoann/WMCore","description":"WMCore","fork":true,"url":"https://api.github.com/repos/ticoann/WMCore","forks_url":"https://api.github.com/repos/ticoann/WMCore/forks","keys_url":"https://api.github.com/repos/ticoann/WMCore/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ticoann/WMCore/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ticoann/WMCore/teams","hooks_url":"https://api.github.com/repos/ticoann/WMCore/hooks","issue_events_url":"https://api.github.com/repos/ticoann/WMCore/issues/events{/number}","events_url":"https://api.github.com/repos/ticoann/WMCore/events","assignees_url":"https://api.github.com/repos/ticoann/WMCore/assignees{/user}","branches_url":"https://api.github.com/repos/ticoann/WMCore/branches{/branch}","tags_url":"https://api.github.com/repos/ticoann/WMCore/tags","blobs_url":"https://api.github.com/repos/ticoann/WMCore/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ticoann/WMCore/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ticoann/WMCore/git/refs{/sha}","trees_url":"https://api.github.com/repos/ticoann/WMCore/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ticoann/WMCore/statuses/{sha}","languages_url":"https://api.github.com/repos/ticoann/WMCore/languages","stargazers_url":"https://api.github.com/repos/ticoann/WMCore/stargazers","contributors_url":"https://api.github.com/repos/ticoann/WMCore/contributors","subscribers_url":"https://api.github.com/repos/ticoann/WMCore/subscribers","subscription_url":"https://api.github.com/repos/ticoann/WMCore/subscription","commits_url":"https://api.github.com/repos/ticoann/WMCore/commits{/sha}","git_commits_url":"https://api.github.com/repos/ticoann/WMCore/git/commits{/sha}","comments_url":"https://api.github.com/repos/ticoann/WMCore/comments{/number}","issue_comment_url":"https://api.github.com/repos/ticoann/WMCore/issues/comments{/number}","contents_url":"https://api.github.com/repos/ticoann/WMCore/contents/{+path}","compare_url":"https://api.github.com/repos/ticoann/WMCore/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ticoann/WMCore/merges","archive_url":"https://api.github.com/repos/ticoann/WMCore/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ticoann/WMCore/downloads","issues_url":"https://api.github.com/repos/ticoann/WMCore/issues{/number}","pulls_url":"https://api.github.com/repos/ticoann/WMCore/pulls{/number}","milestones_url":"https://api.github.com/repos/ticoann/WMCore/milestones{/number}","notifications_url":"https://api.github.com/repos/ticoann/WMCore/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ticoann/WMCore/labels{/name}","releases_url":"https://api.github.com/repos/ticoann/WMCore/releases{/id}","deployments_url":"https://api.github.com/repos/ticoann/WMCore/deployments","created_at":"2011-12-07T19:34:12Z","updated_at":"2014-06-21T11:18:43Z","pushed_at":"2016-02-08T18:03:45Z","git_url":"git://github.com/ticoann/WMCore.git","ssh_url":"git@github.com:ticoann/WMCore.git","clone_url":"https://github.com/ticoann/WMCore.git","svn_url":"https://github.com/ticoann/WMCore","homepage":"https://svnweb.cern.ch/trac/CMSDMWM/","size":24991,"stargazers_count":3,"watchers_count":3,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":1,"forks":3,"open_issues":1,"watchers":3,"default_branch":"master"}},"base":{"label":"dmwm:master","ref":"master","sha":"dc3293521b393b1661e0e9decb7919a11b42b5c1","user":{"login":"dmwm","id":988897,"avatar_url":"https://avatars.githubusercontent.com/u/988897?v=3","gravatar_id":"","url":"https://api.github.com/users/dmwm","html_url":"https://github.com/dmwm","followers_url":"https://api.github.com/users/dmwm/followers","following_url":"https://api.github.com/users/dmwm/following{/other_user}","gists_url":"https://api.github.com/users/dmwm/gists{/gist_id}","starred_url":"https://api.github.com/users/dmwm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmwm/subscriptions","organizations_url":"https://api.github.com/users/dmwm/orgs","repos_url":"https://api.github.com/users/dmwm/repos","events_url":"https://api.github.com/users/dmwm/events{/privacy}","received_events_url":"https://api.github.com/users/dmwm/received_events","type":"Organization","site_admin":false},"repo":{"id":2370458,"name":"WMCore","full_name":"dmwm/WMCore","owner":{"login":"dmwm","id":988897,"avatar_url":"https://avatars.githubusercontent.com/u/988897?v=3","gravatar_id":"","url":"https://api.github.com/users/dmwm","html_url":"https://github.com/dmwm","followers_url":"https://api.github.com/users/dmwm/followers","following_url":"https://api.github.com/users/dmwm/following{/other_user}","gists_url":"https://api.github.com/users/dmwm/gists{/gist_id}","starred_url":"https://api.github.com/users/dmwm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmwm/subscriptions","organizations_url":"https://api.github.com/users/dmwm/orgs","repos_url":"https://api.github.com/users/dmwm/repos","events_url":"https://api.github.com/users/dmwm/events{/privacy}","received_events_url":"https://api.github.com/users/dmwm/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/dmwm/WMCore","description":"WMCore","fork":false,"url":"https://api.github.com/repos/dmwm/WMCore","forks_url":"https://api.github.com/repos/dmwm/WMCore/forks","keys_url":"https://api.github.com/repos/dmwm/WMCore/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dmwm/WMCore/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dmwm/WMCore/teams","hooks_url":"https://api.github.com/repos/dmwm/WMCore/hooks","issue_events_url":"https://api.github.com/repos/dmwm/WMCore/issues/events{/number}","events_url":"https://api.github.com/repos/dmwm/WMCore/events","assignees_url":"https://api.github.com/repos/dmwm/WMCore/assignees{/user}","branches_url":"https://api.github.com/repos/dmwm/WMCore/branches{/branch}","tags_url":"https://api.github.com/repos/dmwm/WMCore/tags","blobs_url":"https://api.github.com/repos/dmwm/WMCore/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dmwm/WMCore/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dmwm/WMCore/git/refs{/sha}","trees_url":"https://api.github.com/repos/dmwm/WMCore/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dmwm/WMCore/statuses/{sha}","languages_url":"https://api.github.com/repos/dmwm/WMCore/languages","stargazers_url":"https://api.github.com/repos/dmwm/WMCore/stargazers","contributors_url":"https://api.github.com/repos/dmwm/WMCore/contributors","subscribers_url":"https://api.github.com/repos/dmwm/WMCore/subscribers","subscription_url":"https://api.github.com/repos/dmwm/WMCore/subscription","commits_url":"https://api.github.com/repos/dmwm/WMCore/commits{/sha}","git_commits_url":"https://api.github.com/repos/dmwm/WMCore/git/commits{/sha}","comments_url":"https://api.github.com/repos/dmwm/WMCore/comments{/number}","issue_comment_url":"https://api.github.com/repos/dmwm/WMCore/issues/comments{/number}","contents_url":"https://api.github.com/repos/dmwm/WMCore/contents/{+path}","compare_url":"https://api.github.com/repos/dmwm/WMCore/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dmwm/WMCore/merges","archive_url":"https://api.github.com/repos/dmwm/WMCore/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dmwm/WMCore/downloads","issues_url":"https://api.github.com/repos/dmwm/WMCore/issues{/number}","pulls_url":"https://api.github.com/repos/dmwm/WMCore/pulls{/number}","milestones_url":"https://api.github.com/repos/dmwm/WMCore/milestones{/number}","notifications_url":"https://api.github.com/repos/dmwm/WMCore/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dmwm/WMCore/labels{/name}","releases_url":"https://api.github.com/repos/dmwm/WMCore/releases{/id}","deployments_url":"https://api.github.com/repos/dmwm/WMCore/deployments","created_at":"2011-09-12T10:37:21Z","updated_at":"2015-11-19T16:18:45Z","pushed_at":"2016-02-08T18:03:46Z","git_url":"git://github.com/dmwm/WMCore.git","ssh_url":"git@github.com:dmwm/WMCore.git","clone_url":"https://github.com/dmwm/WMCore.git","svn_url":"https://github.com/dmwm/WMCore","homepage":"https://svnweb.cern.ch/trac/CMSDMWM/","size":27857,"stargazers_count":25,"watchers_count":25,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":49,"mirror_url":null,"open_issues_count":352,"forks":49,"open_issues":352,"watchers":25,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dmwm/WMCore/pulls/6559"},"html":{"href":"https://github.com/dmwm/WMCore/pull/6559"},"issue":{"href":"https://api.github.com/repos/dmwm/WMCore/issues/6559"},"comments":{"href":"https://api.github.com/repos/dmwm/WMCore/issues/6559/comments"},"review_comments":{"href":"https://api.github.com/repos/dmwm/WMCore/pulls/6559/comments"},"review_comment":{"href":"https://api.github.com/repos/dmwm/WMCore/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dmwm/WMCore/pulls/6559/commits"},"statuses":{"href":"https://api.github.com/repos/dmwm/WMCore/statuses/af1bd607f8b610b13cfc6f0cd02ade8899244a2b"}}}}