open-contracting / data-registry

BSD 3-Clause "New" or "Revised" License
3 stars 0 forks source link

jobs: remove old notes from tasks when the job's status is changed #168

Closed yolile closed 2 years ago

yolile commented 2 years ago

Right now, if a job's task was unsuccessful and then we change its status to "PLANNED" again to re-run it, the old "note" will be still there eg in:

image

The scrape task was first unsuccessful, due to the error noted in the "Note" column, but the second time the result was OK, but the old note is still there, which is confusing.

jpmckinney commented 2 years ago

Closed by linked commit above. The note will only be updated once manageprocess (was cbom) runs, but that happens every 5 minutes as currently configured, so I think that's good enough.