Skip to content

Commit

Permalink
fix: asynchronous ws_pending table drop problem
Browse files Browse the repository at this point in the history
  • Loading branch information
Nolife999 committed Nov 20, 2024
1 parent 30db6ac commit ba06d17
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,17 @@ public void execute(SendResponse resp) throws ArcException {

TableToRetrieve table = clientDao.getAClientTableByName(arcClientIdentifier.getClientInputParameter());

if (this.clientDao.isWebServiceNotPending()) {
// check if the web service is not in pending state i.e. check if the web service has finished to compute the business tables to be transfered
boolean isWebServiceNotPending = this.clientDao.isWebServiceNotPending();

if (isWebServiceNotPending) {
this.clientDao.deleteFromTrackTable(table.getTableName());
}

// transfer data to http response
ServiceDao.execQueryExportDataToResponse(resp.getWr(), table, this.arcClientIdentifier.getFormat(), clientDao);

if (this.clientDao.isWebServiceNotPending()) {
if (isWebServiceNotPending) {
this.clientDao.dropTable(table);

if (arcClientIdentifier.getFormat().isParquet())
Expand Down

0 comments on commit ba06d17

Please sign in to comment.