• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

peppeocchi / php-cron-scheduler / 98 / 3
100%
master: 98%

Build:
Build:
LAST BUILD BRANCH: v4.0
DEFAULT BRANCH: master
Ran 19 Sep 2017 11:03PM UTC
Files 4
Run time 6min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

19 Sep 2017 10:59PM UTC coverage: 100.0%. Remained the same
98.3

push

travis-ci

peppeocchi
Allow run() to run at arbitrary time (#28)

Currently when run() is called it uses the current time as the run
timestamp. However it would be useful to run the scheduler at a
specific time. So allow an optional param with a DateTime to run().

Reasons for running at a specific time other than now() could be:

- Catching up on 'missed' runs, eg. when the system was down.

- Making sure the scheduler runs at an intended timestamp eg. when
cron is started at midnight it could be slow and start the php process
only at 00:01 and thus missing all midnight schedules.

- Improve testability of the scheduler (fake the time)

253 of 253 relevant lines covered (100.0%)

12.04 hits per line

Source Files on job 98.3
  • Tree
  • List 0
  • Changed 3
  • Source Changed 1
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 98
  • Travis Job 98.3
  • 72a20d96 on github
  • Prev Job for on v2.x (#97.3)
  • Next Job for on v2.x (#99.3)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc