Creating long operations table and running unfinished long operations at startup