Closed
Bug 1364529
Opened 9 years ago
Closed 9 years ago
Add Celery to Tecken
Categories
(Socorro :: Symbols, task)
Socorro
Symbols
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: peterbe, Assigned: peterbe)
References
Details
We need to be able to do background jobs to be able to do uploads.
| Assignee | ||
Comment 1•9 years ago
|
||
Comment 2•9 years ago
|
||
Commit pushed to master at https://github.com/mozilla-services/tecken
https://github.com/mozilla-services/tecken/commit/ef082f277053078f7843a89e99f23ad02f732b58
Bug 1364529 add celery to tecken (#97)
* fixes bug 1364529 - Add Celery to Tecken
* bug 1364529 - Add Celery to Tecken
* test coverage
| Assignee | ||
Comment 3•9 years ago
|
||
Miles,
Now can you add a thing that runs the celery workers? I'm not entirely sure how to help you help me with this.
In docker-compose I use `celery -A tecken.celery:app worker -l info` as you can see here: https://github.com/mozilla-services/tecken/blob/ef082f277053078f7843a89e99f23ad02f732b58/bin/run#L43-L44
If you want to test it you can make a `curl -X POST https://symbols.dev.mozaws.net/__task_tester__` followed by a `curl https://symbols.dev.mozaws.net/__task_tester__` and it should say "It works!".
Flags: needinfo?(miles)
Comment 4•9 years ago
|
||
Tested live on the dev instance from the current deployment.
[mcrabill@ip-172-31-50-20 ~]$ curl -L -i -X POST localhost:443/__task_tester__
HTTP/1.1 201 Created
Date: Tue, 16 May 2017 20:38:26 GMT
Content-Type: text/html; charset=utf-8
Content-Length: 35
Connection: keep-alive
x-content-type-options: nosniff
X-Frame-Options: DENY
Content-Security-Policy: connect-src 'self'; default-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self'; font-src 'self'; object-src 'none'; script-src 'self'; report-uri /__cspreport__
strict-transport-security: max-age=31536000
x-xss-protection: 1; mode=block
Now make a GET request to this URL
[mcrabill@ip-172-31-50-20 ~]$ curl -L -i -X GET localhost:443/__task_tester__
HTTP/1.1 200 OK
Date: Tue, 16 May 2017 20:38:28 GMT
Content-Type: text/html; charset=utf-8
Content-Length: 10
Connection: keep-alive
x-content-type-options: nosniff
X-Frame-Options: DENY
Content-Security-Policy: connect-src 'self'; default-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self'; font-src 'self'; object-src 'none'; script-src 'self'; report-uri /__cspreport__
strict-transport-security: max-age=31536000
x-xss-protection: 1; mode=block
It works!
Flags: needinfo?(miles)
| Assignee | ||
Comment 5•9 years ago
|
||
Fixed. Since it it now works in dev.
I have yet to do some work to study the options of the storage of celery jobs etc.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•