8 weeks, but only because I couldn't find someone to accept my notice...!
Started a contract during Covid-remote-working-crazy-season with a very large, well-known organisation and the project was canned half way through week 1 as the business was in chaos due to Covid, Brexit and some other factors. Was told I'd be moved onto something else, but that never materialised despite numerous nudges. I hadn't met many people in the company by this stage, so I started seeking people out in the change department to enquire if/what my job was. The people who'd hired me had since been transitioned into a separate part of the business and left me to rot.
Fortunately had another contract still warm that I'd turned down previously that were still willing to take me on, so decided to give notice, except no one would accept my notice as they had no knowledge of my working there (however during this time I was getting paid). When I did finally get some drone in HR to accept the notice, they insisted I complete a full 4 weeks during which I'd be reassigned to something else, which never materialised. Stupidly, I kept the second contract waiting until my notice finished (I really should have double-bubbled for a few weeks).
Even more bizarre, it was an FTC (my first and last!), so I guess I could have sat it out for the full term and gotten paid, but especially given the lockdown-climate at the time I was going a bit insane with nothing to do all day..!