Skip to content

UPSERT failure leaves task payload in PENDING #13621

@Gpetrak

Description

@Gpetrak

After the recent changes of UPSERT, I noticed that in case of an error such as:

[2025-10-15 14:24:02,614: ERROR/MainProcess] The columns in the source and target do not match they must be equal. The following are not expected or missing: ['fid']. Request: 35771ce7-a9d7-48ed-b5ba-0f0b01723f91

While the main status of the ExecutionRequest object is correctly defined as FAILED, the tasks payload is defined as:

{
  "pending_layer": {
    "geonode.upload.upsert_data": "PENDING"
  }
}

while it has ti be defined as:

{
  <layer_key>: {
    "geonode.upload.upsert_data": "FAILED"
  }
}

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions