Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

dbworker: Set additional columns in MarkCompleted/MarkErrored #13547

Open
@mrnugget

Description

@mrnugget

It would be nice if it was possible to set additional columns when a record is MarkCompleted/MarkErrored.

For example: in campaigns we want to set the updated_at column every time a changeset has been updated.

That could also be done by

  • Defining our own MarkCompleted/MarkErrored methods on a dbworker.Store shim
  • Setting up a database trigger
  • Defining a database view that does a max(updated_at, finished_at, started_at)
  • ...

But maybe there's a more ergonomic way.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions