You'll always have manufacturing and construction. I've never heard of an electrician boom bust cycle. It's infrastructure. It's always in demand.
I know several electricians and they all have been through cycles if they have been around for more than a decade. Things never drop down to zero though, so sometimes they see their buddies without a job while they are still working.
the real question is what booms when electrician work busts
oil
Not for long. 1-2 economic cycles and oil and gas will probably be 20-40% of what they are now.
Useful to keep in mind when choosing a new career.
We're heading into a period where you need to adapt your life to a career on a dime, and be ready to switch again. SW engineering is going away.
No, it won't. Unless we AGI, which we won't with LLMs.