When scheduling a job with a scheduled_at and a deadline, the deadline is getting set relative to now instead of relative to scheduled_at.
Expected Behavior
The docs say the deadline should be relative to scheduled_at.
[...] That also allows the deadline to consider scheduling—a job scheduled to run 1 hour from now with a 1 hour deadline will expire 2 hours in the future. [...]
Environment
Current Behavior
When scheduling a job with a
scheduled_at
and adeadline
, the deadline is getting set relative tonow
instead of relative toscheduled_at
.Expected Behavior
The docs say the deadline should be relative to
scheduled_at
.https://getoban.pro/docs/pro/1.4.9/Oban.Pro.Worker.html#module-job-deadlines
I dove into the code and confirmed that was the intention, there's just a typo.