Skip to content

Use created_at for the time schedule jobs are scheduled#2376

Merged
mperham merged 1 commit intosidekiq:masterfrom
mrsimo:rename-enqueued-at-created-at
Jun 3, 2015
Merged

Use created_at for the time schedule jobs are scheduled#2376
mperham merged 1 commit intosidekiq:masterfrom
mrsimo:rename-enqueued-at-created-at

Conversation

@mrsimo
Copy link
Contributor

@mrsimo mrsimo commented Jun 3, 2015

Based on the discussion in #2373, wanted to give this a try.

When a job is scheduled, it should have a created_at time, and get an enqueued_at when it's actually enqueued back into a queue.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this property be set inside atomic_push instead when we know the job is actually being enqueued?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mperham
Copy link
Collaborator

mperham commented Jun 3, 2015

Really nice work. Add a Changes entry as this can easily break people's code.

@mrsimo
Copy link
Contributor Author

mrsimo commented Jun 3, 2015

Added the entry to Changes in https://github.com/mrsimo/sidekiq/commit/af5e59a9915281b4a4d5c9768795152e9bffcb59

Started a new section for 3.3.5, since 3.3.4 is already released. Would you like the commits squashed?

@mperham
Copy link
Collaborator

mperham commented Jun 3, 2015

Looks great, yes please squash.

When a job is scheduled, it should have a created_at time, and get a
enqueued_at when it's actually enqueued back into a queue.
@mrsimo
Copy link
Contributor Author

mrsimo commented Jun 3, 2015

Squashed!

mperham added a commit that referenced this pull request Jun 3, 2015
Use created_at for the time schedule jobs are scheduled
@mperham mperham merged commit 4889ce3 into sidekiq:master Jun 3, 2015
mperham added a commit that referenced this pull request Jun 3, 2015
@mrsimo mrsimo deleted the rename-enqueued-at-created-at branch June 4, 2015 08:44
jonhyman added a commit that referenced this pull request Jul 24, 2015
… since enqueued_at only gets set when jobs are put into queues, not when they are scheduled (from #2376).
jonhyman added a commit that referenced this pull request Jul 24, 2015
… since enqueued_at only gets set when jobs are put into queues, not when they are scheduled (from #2376).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants