But on the news they said that they could easily last a year or so without any problems, they're being properly sealed up and mothballed.
Read an article a few weeks back that detailed what's involved with mothballing an aircraft. Was many hundreds of hours of for an A330 but I can't find the thing now.
Probably a bit more for a jumbo because of their size
Storing things in hot dry climate probably makes the task a bit easier (a lot of aircraft are being stored at an airfield in Spain).
However it does look like it is the end of the road for the aircraft you've seen.
https://simpleflying.com/lufthansa-retired-boeing-747-fate/
At the time the article was written, the oldest and newest of the 747s were there for dismantling. Normally you'd expect the oldest first but if the youngest is up for a big check (C check iirc) it's not worth the money so straight off to the scrappers.