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

taigaio / taiga-back / 880
77%
master: 81%

Build:
Build:
LAST BUILD BRANCH: weblate-taiga-taiga-back
DEFAULT BRANCH: master
Ran 02 Jul 2014 07:39AM UTC
Jobs 1
Files 166
Run time 1min
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
880

push

travis-ci

ikame
Integration with RabbitMQ and Celery

First update taiga-vagrant vm if you're using it, you will have access
to the rabbit management console at port 8001 of the host machine.

* Defining tasks
- Tasks must be defined in a `deferred` module of an app, for example,
`taiga.projects.deferred` module.
- Tasks must be decorated and given the name "<app>.<task-name>", for
example in `taiga.projects.deferred` module:
```
from taiga.celery import app

@app.task(name="projects.add")
def add(x, y):
    return x + y
```
- Tasks should be at most just wrappers around service functions to
promote re-usability of those functions from other parts of the code,
say, management commands and the like.

* Calling tasks
Tasks should be called using one of the three functions defined in
`taiga.deferred` module:

- `defer`: Use this function if you need to perform some task
asynchronously and GET THE RESULT back later, for example:
```
result = defer("projects.add", x=1, y=2)
...
result.get() # => 3
```

- `call_async`: Use this function when you want to fire off some
task. No result is get back. For example:
```
call_async("projects.email_user", user)
```

- `apply_async`: Is the same as `call_async` but since it's a function
application and you must pass the args and kwargs together as one
parameter each you are allowed to pass celery-specific
extra-options (but bear in mind this is not recommended!)
```
apply_async("projects.email_user", args=(user,), kwargs={}, routing_key="tasks.email")
```

20 of 20 new or added lines in 4 files covered. (100.0%)

3707 of 4824 relevant lines covered (76.84%)

0.77 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
5
100.0
taiga/services/celery.py
Jobs
ID Job ID Ran Files Coverage
1 880.1 02 Jul 2014 07:39AM UTC 0
76.84
Travis Job 880.1
Source Files on build 880
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #880
  • 0308b076 on github
  • Prev Build on taskqueues (#877)
  • Next Build on taskqueues (#881)
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