Postdoc project with poor scientific content and unlikely to lead to publications
I think that the more you stay in the position the more you’ll be trapped into it. I see in the comments that you are at a national laboratory, so I understand that the salary might be tempting and that’s not easy to give it up. However, from a long term perspective, you could lose an opportunity to flourish and to get known. Plus, how long is your contract, 2-3 years? None or few publications could harm your chances to stay in the field, particularly if you want or have to move to another lab or university. It comes down to choosing between being well paid today or increasing your chances to be successful in the future, unless you think you can change your situation without leaving.