Changeset 125:3fcd0890c2ac
- Timestamp:
- 03/08/07 19:12:11
(2 years ago)
- Author:
- James Taylor <james@bx.psu.edu>
- branch:
- default
- convert_revision:
- svn:9bcadc22-80f8-0310-8a53-c8f022958886/galaxy/trunk@1411
- Message:
Support for viewing the full stderr/stdout text associated with "error"
datasets and for sending email reports.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r80 |
r125 |
|
| 3 | 3 | from galaxy import config, db, jobs, util, tools, web |
|---|
| 4 | 4 | import galaxy.model.mapping |
|---|
| 5 | | from galaxy.interfaces import root, tool_runner, proxy, async, admin, user, error |
|---|
| | 5 | from galaxy.interfaces import root, tool_runner, proxy, async, admin, user, error, dataset |
|---|
| 6 | 6 | from galaxy.web import middleware |
|---|
| 7 | 7 | |
|---|
| … | … | |
| 60 | 60 | webapp.add_controller( 'user', user.User( app ) ) |
|---|
| 61 | 61 | webapp.add_controller( 'error', error.Error( app ) ) |
|---|
| | 62 | webapp.add_controller( 'dataset', dataset.DatasetInterface( app ) ) |
|---|
| 62 | 63 | # These two routes handle our simple needs at the moment |
|---|
| 63 | 64 | webapp.add_route( '/async/:tool_id/:data_id', controller='async', action='index', tool_id=None, data_id=None ) |
|---|
| 64 | | webapp.add_route( '/:controller/:action', action='index' ) |
|---|
| | 65 | webapp.add_route( '/:controller/:action/:id', action='index', id=None ) |
|---|
| 65 | 66 | webapp.add_route( '/:action', controller='root', action='index' ) |
|---|
| 66 | 67 | webapp.finalize_config() |
|---|
| r113 |
r125 |
|
| 34 | 34 | self.sendmail_path = kwargs.get('sendmail_path',"/usr/sbin/sendmail") |
|---|
| 35 | 35 | self.mailing_join_addr = kwargs.get('mailing_join_addr',"galaxy-user-join@bx.psu.edu") |
|---|
| | 36 | self.error_email_to = kwargs.get( 'error_email_to', None ) |
|---|
| | 37 | self.smtp_server = kwargs.get( 'smtp_server', None ) |
|---|
| 36 | 38 | self.use_pbs = kwargs.get('use_pbs', False ) |
|---|
| 37 | 39 | self.pbs_server = kwargs.get('pbs_server', "" ) |
|---|
| r115 |
r125 |
|
| 287 | 287 | self.galaxy_session = galaxy_session |
|---|
| 288 | 288 | self.history = history |
|---|
| 289 | | |
|---|
| 290 | | |
|---|
| r117 |
r125 |
|
| 137 | 137 | |
|---|
| 138 | 138 | assign_mapper( context, Dataset, Dataset.table, |
|---|
| 139 | | properties=dict( children=relation( DatasetChildAssociation, primaryjoin=( DatasetChildAssociation.table.c.parent_dataset_id == Dataset.table.c.id ), |
|---|
| 140 | | lazy=False ) ) ) |
|---|
| | 139 | properties=dict( children=relation( DatasetChildAssociation, primaryjoin=( DatasetChildAssociation.table.c.parent_dataset_id == Dataset.table.c.id ), lazy=False ) ) ) |
|---|
| 141 | 140 | |
|---|
| 142 | 141 | assign_mapper( context, DatasetChildAssociation, DatasetChildAssociation.table, |
|---|
| … | … | |
| 182 | 181 | properties=dict( galaxy_session=relation( GalaxySession ), |
|---|
| 183 | 182 | history=relation( History ) ) ) |
|---|
| | 183 | |
|---|
| | 184 | Dataset.mapper.add_property( "creating_job_associations", relation( JobToOutputDatasetAssociation ) ) |
|---|
| 184 | 185 | |
|---|
| 185 | 186 | def db_next_hid( self ): |
|---|
| r115 |
r125 |
|
| 180 | 180 | <div>Job is waiting to run</div> |
|---|
| 181 | 181 | #* THIS SHOULD SAY CANCEL, DELETING QUEUED/RUNNING JOBS SHOULD REMOVE THEM FROM THE QUEUE *# |
|---|
| 182 | | <a href="delete?id=$data.id">delete</a> |
|---|
| | 182 | #* <a href="delete?id=$data.id">delete</a> *# |
|---|
| 183 | 183 | #elif $data_state == "running" |
|---|
| 184 | 184 | <div>Job is currently running</div> |
|---|
| 185 | | <a href="delete?id=$data.id">delete</a> |
|---|
| | 185 | #*<a href="delete?id=$data.id">delete</a> *# |
|---|
| 186 | 186 | #elif $data_state == "error" |
|---|
| 187 | | <div>An error occurred running this job: <i>$data.display_info</i></div> |
|---|
| 188 | | <a href="delete?id=$data.id">delete</a> |
|---|
| | 187 | <div>An error occurred running this job: <i>$data.display_info</i>, <a href="${h.url_for( controller='dataset', action='errors', id=$data.id )}" target="galaxy_main">more info</a></div> |
|---|
| | 188 | #*<a href="delete?id=$data.id">delete</a> *# |
|---|
| 189 | 189 | #else |
|---|
| 190 | 190 | <div> |
|---|
| r79 |
r125 |
|
| 71 | 71 | # path to sendmail |
|---|
| 72 | 72 | sendmail_path = /usr/sbin/sendmail |
|---|
| | 73 | # SMTP server |
|---|
| | 74 | ## smtp_server = ... |
|---|
| | 75 | # Address to email error reports to |
|---|
| | 76 | ## error_email_to = ... |
|---|
| 73 | 77 | # Address to join mailing list |
|---|
| 74 | 78 | mailing_join_addr = galaxy-user-join@bx.psu.edu |
|---|