That would depend on worker's age when it dies. For social Security benefits, it won't be necessary more than 40 credits or 10 years of work to be eligible.
If you are getting benefits on your spouse 's or parent 's record You generally will not need to file an application for survivors benefits
Do I need to apply if I retire?
You will need to apply for the survivors benefits