{"action":"created","issue":{"url":"https://api.github.com/repos/dmwm/WMCore/issues/5748","labels_url":"https://api.github.com/repos/dmwm/WMCore/issues/5748/labels{/name}","comments_url":"https://api.github.com/repos/dmwm/WMCore/issues/5748/comments","events_url":"https://api.github.com/repos/dmwm/WMCore/issues/5748/events","html_url":"https://github.com/dmwm/WMCore/issues/5748","id":65732746,"number":5748,"title":"Report job type to HTCondor","user":{"login":"bbockelm","id":1093447,"avatar_url":"https://avatars.githubusercontent.com/u/1093447?v=3","gravatar_id":"","url":"https://api.github.com/users/bbockelm","html_url":"https://github.com/bbockelm","followers_url":"https://api.github.com/users/bbockelm/followers","following_url":"https://api.github.com/users/bbockelm/following{/other_user}","gists_url":"https://api.github.com/users/bbockelm/gists{/gist_id}","starred_url":"https://api.github.com/users/bbockelm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bbockelm/subscriptions","organizations_url":"https://api.github.com/users/bbockelm/orgs","repos_url":"https://api.github.com/users/bbockelm/repos","events_url":"https://api.github.com/users/bbockelm/events{/privacy}","received_events_url":"https://api.github.com/users/bbockelm/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"ericvaandering","id":1672366,"avatar_url":"https://avatars.githubusercontent.com/u/1672366?v=3","gravatar_id":"","url":"https://api.github.com/users/ericvaandering","html_url":"https://github.com/ericvaandering","followers_url":"https://api.github.com/users/ericvaandering/followers","following_url":"https://api.github.com/users/ericvaandering/following{/other_user}","gists_url":"https://api.github.com/users/ericvaandering/gists{/gist_id}","starred_url":"https://api.github.com/users/ericvaandering/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericvaandering/subscriptions","organizations_url":"https://api.github.com/users/ericvaandering/orgs","repos_url":"https://api.github.com/users/ericvaandering/repos","events_url":"https://api.github.com/users/ericvaandering/events{/privacy}","received_events_url":"https://api.github.com/users/ericvaandering/received_events","type":"User","site_admin":false},"milestone":null,"comments":5,"created_at":"2015-04-01T17:06:04Z","updated_at":"2015-04-02T21:40:32Z","closed_at":null,"body":"Long-term, HTCondor can apply global limits to number of running jobs for arbitrary sets of jobs (like \"merge jobs per site\").  These are global across the pool - something the independent agents can't actually do.\r\n\r\nHowever, to apply these limits, we need more information from the agent in the HTCondor job.  Can we add an attribute for the \"job type\"?  Looking at the resource control, I see the following job types:\r\n- Cleanup\r\n- Merge\r\n- LogCollect\r\n- Harvesting\r\n- Skim\r\n- Processing\r\n- MultiProduction (what is this?)\r\n- Production\r\n- MultiProcessing (what is this?)\r\n- Analysis\r\n\r\nOnce the job types are in HTCondor, I believe that I can construct the limits via this and the DESIRED_Sites string."},"comment":{"url":"https://api.github.com/repos/dmwm/WMCore/issues/comments/89052366","html_url":"https://github.com/dmwm/WMCore/issues/5748#issuecomment-89052366","issue_url":"https://api.github.com/repos/dmwm/WMCore/issues/5748","id":89052366,"user":{"login":"ericvaandering","id":1672366,"avatar_url":"https://avatars.githubusercontent.com/u/1672366?v=3","gravatar_id":"","url":"https://api.github.com/users/ericvaandering","html_url":"https://github.com/ericvaandering","followers_url":"https://api.github.com/users/ericvaandering/followers","following_url":"https://api.github.com/users/ericvaandering/following{/other_user}","gists_url":"https://api.github.com/users/ericvaandering/gists{/gist_id}","starred_url":"https://api.github.com/users/ericvaandering/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericvaandering/subscriptions","organizations_url":"https://api.github.com/users/ericvaandering/orgs","repos_url":"https://api.github.com/users/ericvaandering/repos","events_url":"https://api.github.com/users/ericvaandering/events{/privacy}","received_events_url":"https://api.github.com/users/ericvaandering/received_events","type":"User","site_admin":false},"created_at":"2015-04-02T21:40:32Z","updated_at":"2015-04-02T21:40:32Z","body":"Doing a bit of archaeology this code was introduced in https://github.com/ericvaandering/WMCore/commit/d4888b91a89c786fc18666e78dda3974f9cfa686 in its current form. @bbockelm is listed as an author. Before that commit subTaskType was not in the code base, after that patch, just in this one place. Sure looks like a bug. I'll change the code and use the variable Brian suggests so that CRAB can set the same.\r\n"}}