Judging by the size of the buds, it is nowhere near the end of its lifecycle. It is yellow because of a deficiency the plant is sucking nitrogen from your leaves. The plant is working harder to get what it needs, and wasting energy on pulling nutes rather than growing.
A whole plant pic may help.