adapter stastus updates

I have a custom adpater that kicks off an job that uses the API. 

I do this so I can get a complex sql merge statment that I cannot complete using the OOB db push adapter.

I am sending a large amount of data and would like to update the adapter sastus while in progress and then the total upon sucessful completion.

Have anyone have knowledge on how to do this?