mirror of
https://github.com/acaloiaro/neoq
synced 2026-07-21 18:29:08 +00:00
Flip logic
This commit is contained in:
parent
d05bf4edf8
commit
f7da9f3903
1 changed files with 1 additions and 1 deletions
|
|
@ -943,7 +943,7 @@ func (p *PgBackend) handleJob(ctx context.Context, jobID string) (err error) {
|
|||
ctx = jobs.WithJobContext(ctx, job)
|
||||
ctx = context.WithValue(ctx, txCtxVarKey, tx)
|
||||
|
||||
if job.RunAfter.After(time.Now()) {
|
||||
if job.RunAfter.Before(time.Now()) {
|
||||
p.logger.Error("Running a job too early.",
|
||||
slog.String("queue", job.Queue),
|
||||
slog.Int64("job_id", job.ID),
|
||||
|
|
|
|||
Loading…
Reference in a new issue