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

arteria / django-background-tasks / 247
76%

Build:
DEFAULT BRANCH: master
Ran 04 Aug 2017 01:49PM UTC
Jobs 18
Files 15
Run time 13min
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
247

push

travis-ci

walterrenner
Initialize ThreadPools only if/when needed. (#110)

Calling ThreadPool will spawn the requested number of Threads
immediately. As `tasks` is imported when the `@background` decorator is
used a new ThreadPool will be created for every Django worker if a
`@background` task is defined. Altough those threads are idle they are
using still ressources.

This commit introduces a PoolRunner which does create a single static
ThreadPool only if/when a async task is requested to run.
The downside of this approach is the additional work needed for creating
the Pool when starting the first task. But as tasks should be run from
the managment command this shouldn't be a problem.

14 of 14 new or added lines in 1 file covered. (100.0%)

471 of 591 relevant lines covered (79.7%)

14.06 hits per line

Jobs
ID Job ID Ran Files Coverage
1 247.1 (TOX_ENV=py27-django18-sync) 04 Aug 2017 01:50PM UTC 0
76.65
Travis Job 247.1
2 247.2 (TOX_ENV=py27-django18-async) 04 Aug 2017 01:50PM UTC 0
79.53
Travis Job 247.2
3 247.3 (TOX_ENV=py27-django19-sync) 04 Aug 2017 01:49PM UTC 0
76.65
Travis Job 247.3
4 247.4 (TOX_ENV=py27-django19-async) 04 Aug 2017 01:50PM UTC 0
79.53
Travis Job 247.4
5 247.5 (TOX_ENV=py27-django110-sync) 04 Aug 2017 01:50PM UTC 0
76.65
Travis Job 247.5
6 247.6 (TOX_ENV=py27-django110-async) 04 Aug 2017 01:54PM UTC 0
79.53
Travis Job 247.6
7 247.7 (TOX_ENV=py34-django18-sync) 04 Aug 2017 01:53PM UTC 0
76.65
Travis Job 247.7
8 247.8 (TOX_ENV=py34-django18-async) 04 Aug 2017 01:54PM UTC 0
79.53
Travis Job 247.8
9 247.9 (TOX_ENV=py34-django19-sync) 04 Aug 2017 01:54PM UTC 0
76.65
Travis Job 247.9
10 247.10 (TOX_ENV=py34-django19-async) 04 Aug 2017 01:54PM UTC 0
79.53
Travis Job 247.10
11 247.11 (TOX_ENV=py34-django110-sync) 04 Aug 2017 01:56PM UTC 0
76.65
Travis Job 247.11
12 247.12 (TOX_ENV=py34-django110-async) 04 Aug 2017 01:58PM UTC 0
79.53
Travis Job 247.12
13 247.13 (TOX_ENV=py35-django18-sync) 04 Aug 2017 01:58PM UTC 0
76.65
Travis Job 247.13
14 247.14 (TOX_ENV=py35-django18-async) 04 Aug 2017 01:58PM UTC 0
79.53
Travis Job 247.14
15 247.15 (TOX_ENV=py35-django19-sync) 04 Aug 2017 01:58PM UTC 0
76.65
Travis Job 247.15
16 247.16 (TOX_ENV=py35-django19-async) 04 Aug 2017 02:01PM UTC 0
79.53
Travis Job 247.16
17 247.17 (TOX_ENV=py35-django110-sync) 04 Aug 2017 02:02PM UTC 0
76.65
Travis Job 247.17
18 247.18 (TOX_ENV=py35-django110-async) 04 Aug 2017 02:03PM UTC 0
79.53
Travis Job 247.18
Source Files on build 247
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #247
  • fb2bf67e on github
  • Prev Build on master (#246)
  • Next Build on master (#248)
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