Is update by query async operation or sync operation?

And if so , how to know when update is done ?

Sync by default.

Read Update By Query API | Elasticsearch Guide [7.15] | Elastic for asynchronous option