Skip to content

Commit

Permalink
bump to 0.4.1, fix bug with late materialization
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshKarpel committed Jun 12, 2019
1 parent b43008f commit ec47633
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 1 deletion.
22 changes: 22 additions & 0 deletions docs/source/versions/v0_4_1.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
v0.4.1
======

New Features
------------

Bug Fixes
---------

* Fixed a bug where maps submitted with late materialization would choke on the
"cluster submit" event when reading their event log. Band-aided for now.

Known Issues
------------

* Execution errors that result in the job being terminated but no output being
produced are still not handled entirely gracefully. Right now, the component
state will just show as ``ERRORED``, but there won't be an actual error report.
* Map component state may become corrupted when a map is manually vacated.
Force-removal may be needed to clean up maps if HTCondor and HTMap disagree
about the state of their components.
Issue: https://github.com/htcondor/htmap/issues/129
5 changes: 5 additions & 0 deletions htmap/state.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,11 @@ def _read_events(self):
for event in self._event_reader:
self.map._local_data = None # invalidate cache if any events were received

# skip the late materialization submit event
# todo: replace with better mechanism
if event.proc < 0:
continue

if event.type is htcondor.JobEventType.SUBMIT:
self._clusterproc_to_component[(event.cluster, event.proc)] = int(event['LogNotes'])

Expand Down
2 changes: 1 addition & 1 deletion htmap/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

from typing import Tuple

__version__ = '0.4.0'
__version__ = '0.4.1'


def version() -> str:
Expand Down

0 comments on commit ec47633

Please sign in to comment.