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

arteria / django-background-tasks / 258 / 3
76%
master: 76%

Build:
DEFAULT BRANCH: master
Ran 24 Jan 2018 01:25PM UTC
Files 16
Run time 1s
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

24 Jan 2018 01:23PM UTC coverage: 76.923% (+0.08%) from 76.846%
TOX_ENV=py27-django19-sync

push

travis-ci

walterrenner
Ensure that Task repetitions are created only in the future (#126)

The idea of task repetitions is to repeat a task each n seconds.
This is fine for use-cases where task processing is always running.

When task processing is not always running, this can create a problem.
For example, imagine a daily task and the processing stopping for one week.
When the processing resumes, the same task will be run 7 times in short succession.

This commit ensures that task repetitions are only scheduled in the future.
For above example, this means that the 7 tasks will not be created.
Instead, only one new task will be created, preventing the same task
from running unnecessarily several times.

This commit also adds a unit test to ensure this behavior will not break
again in the future.

460 of 598 relevant lines covered (76.92%)

0.77 hits per line

Source Files on job 258.3 (TOX_ENV=py27-django19-sync)
  • Tree
  • List 0
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 258
  • Travis Job 258.3
  • 8e7c0013 on github
  • Prev Job for TOX_ENV=py27-django19-sync on master (#256.3)
  • Next Job for TOX_ENV=py27-django19-sync on master (#259.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