Question: Subscribing To Job Status Events
0
gravatar for Oren Livne
7.2 years ago by
Oren Livne130
Oren Livne130 wrote:
Dear All, Does Galaxy provide a way for a client app to subscribe to job status change notifications? Best would be a web service that lists the currently running jobs (for the current user / all users) and their status. Thank you so much, Oren
galaxy • 527 views
ADD COMMENTlink modified 7.2 years ago by Dannon Baker3.7k • written 7.2 years ago by Oren Livne130
0
gravatar for Dannon Baker
7.2 years ago by
Dannon Baker3.7k
United States
Dannon Baker3.7k wrote:
Oren, Exactly what you're asking for doesn't currently exist, though depending on what you're building you could definitely use the API to monitor this sort of thing. The histories controller provides the state of job, along with lots of other useful information. For example, using the encoded id of a job and the provided (in your /galaxy/scripts/api directory) display.py script, you can make a request something like: python ./display.py <your api="" key=""> http://localhost:8080/api/histories/<history_id>/contents/<dataset_id> And you'll get a reply that includes the detailed state information of this particular dataset, something like what I've copied below. In this, you can see that I'm currently uploading the file, for example. Member Information misc_blurb: None name: sample.fasta data_type: None deleted: False state: upload download_url: /datasets/a799d38679e985db/display?to_ext=None visible: True genome_build: ? model_class: HistoryDatasetAssociation file_size: 0 metadata_data_lines: None id: a799d38679e985db misc_info: None metadata_dbkey: ? Let me know if you have more questions, or if this is sufficient to get you started. Thanks! -Dannon
ADD COMMENTlink written 7.2 years ago by Dannon Baker3.7k
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 16.09
Traffic: 184 users visited in the last hour