Allow the curl client transport to have a timeout value set (includes a
general framework for setting any other transport options that might be necessary), and add an exception that can be raised up to the pulsar runner in Galaxy to handle communication problems while checking state or submitting jobs. Fixes a problem encountered on usegalaxy.org where the monitor thread would encounter some network problem and block forever (until handler restart). Partially fixes #114 in that restarts will not kill running jobs, but if Galaxy attempts to submit a job while Pulsar is down it will still fail.
Showing
- pulsar/client/__init__.py 2 additions, 0 deletionspulsar/client/__init__.py
- pulsar/client/exceptions.py 39 additions, 0 deletionspulsar/client/exceptions.py
- pulsar/client/manager.py 2 additions, 1 deletionpulsar/client/manager.py
- pulsar/client/transport/__init__.py 5 additions, 3 deletionspulsar/client/transport/__init__.py
- pulsar/client/transport/curl.py 24 additions, 3 deletionspulsar/client/transport/curl.py
- pulsar/client/transport/standard.py 3 additions, 0 deletionspulsar/client/transport/standard.py
Loading
Please register or sign in to comment