Skip to content

Commit

Permalink
fix: giveaway update run_date
Browse files Browse the repository at this point in the history
  • Loading branch information
Destinea committed Dec 20, 2024
1 parent 3568de5 commit fa0df67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bot/giveaway/track.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ async def schedule_giveaways(db_client, producer, scheduler):
scheduler.add_job(
produce_giveaway_event,
"date",
run_date=giveaway["giveaway_update"],
run_date=datetime.utcnow(),
args=[producer, "giveaway_update", giveaway], # Call Kafka producer
id=f"update-{giveaway['_id']}",
misfire_grace_time=300, # 5 minutes grace period
Expand Down

0 comments on commit fa0df67

Please sign in to comment.