Ticket #10186 (closed: fixed)
Build autoreduction web app queue processor
Reported by: | MarcusNoble | Owned by: | MarcusNoble |
---|---|---|---|
Priority: | critical | Milestone: | Release 3.3 |
Component: | Tools | Keywords: | AUTOREDUCTION |
Cc: | doucetm@…, tom.griffin@…, nick.draper@…, anders.markvardsen@… | Blocked By: | #10242, #10267, #10268 |
Blocking: | #10147 | Tester: | Anders Markvardsen |
Description (last modified by MarcusNoble) (diff)
Build a python app to be run as a daemon to listen for, process and respond to ActiveMQ messages.
Should be able to handle the following topics:
- Data.Ready
- Reduction.Ready
- Reduction.Started
- Reduction.Complete
- Reduction.Error
It should be able to reuse the models used by the web app to interact with the database.
For Tester:
- Connect to datareducedev.isis.cclrc.ac.uk
- sudo su
- export PATH="/usr/local/bin:$PATH"
- python /var/www/autoreduce_webapp/manage.py test (Note: One test will take longer than the others as it waits for a timeout)
- When asked for ICAT credentials enter your federal ID credentials (This will happen twice)
Expected output:
[root@datareducedev autoreduce_webapp]# python /var/www/autoreduce_webapp/manage.py test Creating test database for alias 'default'... ICAT Username: ICAT Password: .............................. ICAT Username: ICAT Password: ...................... ---------------------------------------------------------------------- Ran 52 tests in 141.537s OK Destroying test database for alias 'default'...
Change History
comment:5 Changed 6 years ago by MarcusNoble
Topics changed to:
/topic/DataReady /topic/ReductionPending /topic/ReductionStarted /topic/ReductionComplete /topic/ReductionError
to make sure they are recognised as topics by ActiveMQ.
For Tester:
See ticket #10267
comment:7 Changed 6 years ago by MarcusNoble
Code checked in.
Still needs the following tests:
check graphs are correctly handledcheck temporary reduce.py scripts are created
comment:9 Changed 6 years ago by MarcusNoble
- Status changed from inprogress to verify
- Resolution set to fixed
comment:10 Changed 6 years ago by Anders Markvardsen
- Status changed from verify to verifying
- Tester set to Anders Markvardsen
comment:11 Changed 6 years ago by Anders Markvardsen
- Status changed from verifying to closed
app build to listen for and respond to messages as described in ticked.
This is extensively tested in QueueProcessorTestCase and all tests are passing
Note: See
TracTickets for help on using
tickets.