Dose custom rake task ignore observer?

I have an observer which will do some tidy up work around Model A.
But when I create or destroy A’s instance inside a custom rake task,
the observer seems not get called at all?
Can some one explain this?