{"action":"opened","issue":{"url":"https://api.github.com/repos/ligo-cbc/pycbc/issues/760","repository_url":"https://api.github.com/repos/ligo-cbc/pycbc","labels_url":"https://api.github.com/repos/ligo-cbc/pycbc/issues/760/labels{/name}","comments_url":"https://api.github.com/repos/ligo-cbc/pycbc/issues/760/comments","events_url":"https://api.github.com/repos/ligo-cbc/pycbc/issues/760/events","html_url":"https://github.com/ligo-cbc/pycbc/issues/760","id":146364425,"number":760,"title":"Pegasus should be configured to delete the scratch directories at the end of the run","user":{"login":"duncan-brown","id":11262902,"avatar_url":"https://avatars.githubusercontent.com/u/11262902?v=3","gravatar_id":"","url":"https://api.github.com/users/duncan-brown","html_url":"https://github.com/duncan-brown","followers_url":"https://api.github.com/users/duncan-brown/followers","following_url":"https://api.github.com/users/duncan-brown/following{/other_user}","gists_url":"https://api.github.com/users/duncan-brown/gists{/gist_id}","starred_url":"https://api.github.com/users/duncan-brown/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duncan-brown/subscriptions","organizations_url":"https://api.github.com/users/duncan-brown/orgs","repos_url":"https://api.github.com/users/duncan-brown/repos","events_url":"https://api.github.com/users/duncan-brown/events{/privacy}","received_events_url":"https://api.github.com/users/duncan-brown/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"soumide1102","id":14112415,"avatar_url":"https://avatars.githubusercontent.com/u/14112415?v=3","gravatar_id":"","url":"https://api.github.com/users/soumide1102","html_url":"https://github.com/soumide1102","followers_url":"https://api.github.com/users/soumide1102/followers","following_url":"https://api.github.com/users/soumide1102/following{/other_user}","gists_url":"https://api.github.com/users/soumide1102/gists{/gist_id}","starred_url":"https://api.github.com/users/soumide1102/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soumide1102/subscriptions","organizations_url":"https://api.github.com/users/soumide1102/orgs","repos_url":"https://api.github.com/users/soumide1102/repos","events_url":"https://api.github.com/users/soumide1102/events{/privacy}","received_events_url":"https://api.github.com/users/soumide1102/received_events","type":"User","site_admin":false},"milestone":null,"comments":0,"created_at":"2016-04-06T16:22:35Z","updated_at":"2016-04-06T16:22:35Z","closed_at":null,"body":"At the moment, the ``local-site-scratch`` directory is deleted at the end of the run, but the ``osg-site-scratch`` directory is not. Pegasus should be configured to delete ``osg-site-scratch`` at the end of the run. I think this is because the top-level dax has ``--cleanup inplace`` set by \r\n\r\nhttps://github.com/ligo-cbc/pycbc/blob/master/bin/pycbc_submit_dax\r\n\r\nbut the sub-daxes have ``--cleanup none``. Check with @vahi on the right way to do this, as this needs to be done with care so that files aren't deleted too soon.\r\n\r\nSee the options at https://pegasus.isi.edu/documentation/cli-pegasus-plan.php"}}