I don't think the scripts that Galaxy has that deployers can opt to run to say periodically purge deleted datasets, etc... would respect such a hack anyway - so I would be hesitant to add a sort of porous hook (not unwilling to, just hesitant). Setting up a cron job to monitor the datasets table and figure out which new datasets have been purged periodically might prove to be more robust and would allow you to do this without modifying the core of Galaxy. There are heavy tradeoffs with this approach obviously - it is more coding and there is some time delay between deletion and the execution of desired task.
Hope this helps, -John On Wed, Feb 18, 2015 at 10:21 AM, Raffaele Montella <raffaele.monte...@uniparthenope.it> wrote: > Thanks Dannon! > Actually I’d like to avoid code hacking enforcing NTCC (no touch core > code!). > Anyway, if there is no other way I’ll share the hack with the community, > maybe could be part of next core improvements. > Bests, > — Raffaele > > > On 18 Feb 2015, at 07:19, Dannon Baker <dannon.ba...@gmail.com> wrote: > > There isn't a hook that already exists for this, but if this is for a custom > instance and you're looking to hack something in, you could add extra logic > to lib/galaxy/managers/hdas.py in the 'purge' method. Let me know if you > need more information, good luck! > > -Dannon > > On Tue Feb 17 2015 at 6:37:52 PM Raffaele Montella > <raffaele.monte...@uniparthenope.it> wrote: >> >> Hi, >> >> I need to perform some actions when a dataset if fully deleted. >> Does it exist a hook in datatype definition to do that? >> Thanks, >> Raffaele >> ___________________________________________________________ >> Please keep all replies on the list by using "reply all" >> in your mail client. To manage your subscriptions to this >> and other Galaxy lists, please use the interface at: >> https://lists.galaxyproject.org/ >> >> To search Galaxy mailing lists use the unified search at: >> http://galaxyproject.org/search/mailinglists/ > > > > ___________________________________________________________ > Please keep all replies on the list by using "reply all" > in your mail client. To manage your subscriptions to this > and other Galaxy lists, please use the interface at: > https://lists.galaxyproject.org/ > > To search Galaxy mailing lists use the unified search at: > http://galaxyproject.org/search/mailinglists/ ___________________________________________________________ Please keep all replies on the list by using "reply all" in your mail client. To manage your subscriptions to this and other Galaxy lists, please use the interface at: https://lists.galaxyproject.org/ To search Galaxy mailing lists use the unified search at: http://galaxyproject.org/search/mailinglists/