Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow tasks to be scheduled to run at a specific wallclock time #13

Open
robacarp opened this issue Sep 6, 2018 · 1 comment
Open
Labels

Comments

@robacarp
Copy link
Collaborator

robacarp commented Sep 6, 2018

for now, this can be implemented as a periodic job which enqueues a job at a specific time:

class WallclockJob < Mosquito::QueuedJob
# whatever
end

class SchedulerJob < Mosquito::PeriodicJob
  run_every 1.minute

  def perform
    if Time.now.hour == 3 && Time.now.minute == 45
      WallclockJob.new.enqueue
    end
  end
end
@watzon
Copy link
Contributor

watzon commented Jan 9, 2021

This would be really nice to have

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants