Skip to content

Replacing a jobs args and schedule #123

@pconstantinou

Description

@pconstantinou

I want to insert a job and then override it with newer args and an updated schedule.

In the specific use case, I'd like to trigger a long-running remote process with some data. As soon as the data comes to my service, I trigger the job to start in 45 seconds, but if more data comes in, I want to update the arguments and only have the most recent queued item handled.

Does River have that capability? It looks like the first one wins and duplicate inserts are discarded.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions