Skip to content

Add que_jobs.initial_run_at ?  #325

@paul110

Description

@paul110

Hi,

This is somewhat similar to this (quite old) issue #33 (which I think would likely still be a "nice to have") but we think that an initial_run_at would likely be a lot more useful.

Our use case is that we are trying to see how backed up Que jobs are in order to set alarms based on that. The issue is that currently in order to determine the job_delay, we need to do something along these lines:

  • if error_count = 0 => job_delay = now() - run_at
  • if error_count > 0 => job_delay = now() - F(run_at, error_count)

The major benefit in adding initial_run_at would be to make this always be:

job_delay = now() - initial_run_at

regardless of the error_count.

Is there any appetite for adding the column initial_run_at (and also potentially created_at as a nice to have)?

Thanks,
Paul

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