Originally created by @zanloy on GitHub (Apr 11, 2016).
Maybe I am missing something but is there a way to run a task only on weekdays? Or some way to exclude Saturday and Sunday at least?
Originally created by @zanloy on GitHub (Apr 11, 2016).
Maybe I am missing something but is there a way to run a task only on weekdays? Or some way to exclude Saturday and Sunday at least?
Hello @zanloy
Sorry, there's no way for now, as a temporary solution you can set different jobs for each weekday:
[:monday, :tuesday, :wednesday, :thursday, :friday].each do |week_day|
Crono.perform(TestJob).every 1.week, on: week_day
end
@plashchynski commented on GitHub (Jun 24, 2016):
Hello @zanloy
Sorry, there's no way for now, as a temporary solution you can set different jobs for each weekday:
```
[:monday, :tuesday, :wednesday, :thursday, :friday].each do |week_day|
Crono.perform(TestJob).every 1.week, on: week_day
end
```
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @zanloy on GitHub (Apr 11, 2016).
Maybe I am missing something but is there a way to run a task only on weekdays? Or some way to exclude Saturday and Sunday at least?
@plashchynski commented on GitHub (Jun 24, 2016):
Hello @zanloy
Sorry, there's no way for now, as a temporary solution you can set different jobs for each weekday: