Adjust Cost Inventory Entry Taking too long and not completing for 2 WIP

There are two WIP items whose ACIE has not been running automactically for almost a 5 days now. How can we sort this, does the Database need optimisation?

Please advise.