Ticket #10186 (closed: fixed)

Opened 6 years ago

Last modified 6 years ago

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:

  1. Connect to datareducedev.isis.cclrc.ac.uk
  2. sudo su
  3. export PATH="/usr/local/bin:$PATH"
  4. python /var/www/autoreduce_webapp/manage.py test (Note: One test will take longer than the others as it waits for a timeout)
  5. 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:1 Changed 6 years ago by MarcusNoble

  • Status changed from new to assigned

comment:2 Changed 6 years ago by MarcusNoble

  • Status changed from assigned to inprogress

comment:3 Changed 6 years ago by MarcusNoble

  • Blocked By 10242 added

comment:4 Changed 6 years ago by MarcusNoble

  • Blocked By 10267 added

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:6 Changed 6 years ago by MarcusNoble

  • Blocked By 10268 added

comment:7 Changed 6 years ago by MarcusNoble

Code checked in.

Still needs the following tests:

  • check graphs are correctly handled
  • check temporary reduce.py scripts are created
Last edited 6 years ago by MarcusNoble (previous) (diff)

comment:8 Changed 6 years ago by MarcusNoble

  • Description modified (diff)

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.