[SD-1011] Create a celery task to purge spiked items

Would you like me to remove the try catch? It will get caught by the try
catch in celery_app.py?

On 11 November 2014 12:57, Petr Jašek <notifications@github.com> wrote:

> In apps/archive/__init__.py:
>
> > @@ -83,3 +89,14 @@ def init_app(app):
> >      register_model(ItemModel(EveProxy(superdesk.get_backend())))
> >      register_component(ItemAutosave(app))
> >      register_model(ItemAutosaveModel(EveProxy(superdesk.get_backend())))
> > +
> > +
> > +@celery.task()
> > +def spike_purge():
> > +    try:
> > +        print('Starting Spike purge')
> > +        ArchiveRemoveExpiredSpikes().run()
> > +        print('Finished Spike purge')
> > +    except Exception as ex:
> > +        print('Spike exception')
>
> i think just not catching it, there is a try/catch in base task class
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/superdesk/superdesk-server/pull/344/files#r20127884>.
>



-- 

*Andrew Marwood* | Senior Analyst Programmer




*Australian Associated Press*Level 5, 3 Rider Boulevard, Rhodes NSW 2138,
Australia
PO Box 3411, Rhodes NSW 2138, Australia
*T* +61 2 9322 8594   *F* +61 2 9322 8086
*E* amarwood@aap.com.au | www.aap.com.au

-- 
*This email may contain information that is confidential. If you receive an 
email in error please delete it immediately.*