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

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

Build:
Build:
LAST BUILD BRANCH: v4.0
DEFAULT BRANCH: master
Ran 19 Sep 2017 11:03PM UTC
Jobs 3
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

pending completion
98

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)

299 of 299 relevant lines covered (100.0%)

31.78 hits per line

Jobs
ID Job ID Ran Files Coverage
1 98.1 19 Sep 2017 11:01PM UTC 0
100.0
Travis Job 98.1
2 98.2 19 Sep 2017 11:01PM UTC 0
100.0
Travis Job 98.2
3 98.3 19 Sep 2017 11:01PM UTC 0
100.0
Travis Job 98.3
Source Files on build 98
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #98
  • 72a20d96 on github
  • Prev Build on v2.x (#97)
  • Next Build on v2.x (#99)
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