94165 Commits

Author SHA1 Message Date
Daniel Blankenberg 75a590241b Updated interval2maf test data. 2006-12-14 21:03:03 +00:00
Daniel Blankenberg 74784e1755 Pushing my changes from james-wsgi branch onto the trunk.
Biomart doesn't work on the trunk yet (Before or after this commit).

axt to lav tool won't be functional until multiple datasets per history item is available on trunk - although I could
make it so that only the lav file is generated and no fasta files, in which case it wouldn't be an issue.
2006-12-14 21:02:17 +00:00
James Taylor 58f813650d Fix for DataToolParameter unit test. 2006-12-14 20:31:05 +00:00
James Taylor 6b87816f64 Update pkg_resources. 2006-12-14 16:19:17 +00:00
James Taylor d4dc2fa8bf Fix some doc comments. 2006-12-14 01:08:48 +00:00
James Taylor 5e2761622e Set job state properly on completion. 2006-12-14 01:03:22 +00:00
James Taylor 399d29cec6 First pass at re-factoring job management:
- Creating the command line has been broken up into several methods
  associated with 'Tool'

- Creation of the command line is now done by DefaultToolAction and stored in
  the database (thus if the tool config changes between queueing and running
  of a job things will not break, and if the JobQueue was running on a
  different machine from the web frontend it would not need knowledge of the
  tool config)

- Broke the old JobQueue up quite a bit. New classes are:

  jobs.JobQueue: jobs to be run still get added here. It has a single monitor
  thread that iterates the jobs waiting for one to become runnable, then it
  tries to dispatch the job

  jobs.DefaultJobDispatcher: responsible for deciding how to run a job once
  it is ready to run. Just a trivial implementation for now, as before is PBS
  is enabled and the tool is not a 'data_source' tool, try to run it using
  PBS, otherwise run locally

  jobs.runners.local.LocalJobRunner: the old pool of worker threads that runs
  jobs processes locally

  jobs.runners.local.PBSJobRunner: PBS job runner. Only uses a single thread
  to watch all queued/running jobs. This is TOTALLY UNTESTED. I haven't even
  imported it. I just tried to break up Nate's code to make a state machine
  that could be managed with one thread. Need to know more about the PBS
  setup to test.

Next steps:

- Clean up locally running jobs when the queue is shut down (kill the jobs
  and mark the state change appropriately)

- For all jobs it should be possible to requeue and jobs in the 'waiting'
  state on startup

- For the PBS queue, it should be possible to recover the state of any jobs
  that were queued or running on startup. However we might need more data
  in the database for this
2006-12-14 00:24:38 +00:00
James Taylor 99e2fdbe81 Add a 'deleted' boolean column to History and Dataset. More work is still
needed on the interface. It should be possible to undelete items as well.

As far as purging, if a dataset is in the deleted state and not modified for
a certain period of time we can purge the data file and set the state to
"purged" or something similar. At this point datasets can no longer be
undeleted (but we still have all the job history in the database for as
long as we want).
2006-12-06 22:45:15 +00:00
James Taylor 01478be010 Fix tool config for functional tests. 2006-11-15 20:09:48 +00:00
James Taylor 2c4c20436e Cleaning up modules. Still a few stragglers that can't be easily eggified.
EVERYTHING we depend on should eventually be under the galaxy module or
packaged in eggs to avoid namespace problems.
2006-11-15 18:27:21 +00:00
James Taylor c5f634fd3f Imports... 2006-11-15 18:14:50 +00:00
James Taylor d87ee75027 Cleaning everything up (should be working as usual) 2006-11-15 16:55:17 +00:00
James Taylor 9cdbe06f09 More moving things around. 2006-11-15 16:32:54 +00:00
James Taylor a834c193ab Moving some things around. 2006-11-15 16:32:21 +00:00
James Taylor f788a34fca Moving james-wsgi branch to new trunk. 2006-11-15 16:28:21 +00:00