equal
deleted
inserted
replaced
101 val session_setup: (String, Session) => Unit, |
101 val session_setup: (String, Session) => Unit, |
102 val uuid: String |
102 val uuid: String |
103 ) { |
103 ) { |
104 def sessions_structure: Sessions.Structure = build_deps.sessions_structure |
104 def sessions_structure: Sessions.Structure = build_deps.sessions_structure |
105 |
105 |
106 def session_context(session: String): Build_Job.Session_Context = sessions(session) |
106 def sources_shasum(session: String): SHA1.Shasum = sessions(session).sources_shasum |
107 |
|
108 def sources_shasum(session: String): SHA1.Shasum = session_context(session).sources_shasum |
|
109 |
107 |
110 def old_command_timings(session: String): List[Properties.T] = |
108 def old_command_timings(session: String): List[Properties.T] = |
111 sessions.get(session) match { |
109 sessions.get(session) match { |
112 case Some(session_context) => |
110 case Some(session_context) => |
113 Properties.uncompress(session_context.old_command_timings_blob, cache = store.cache) |
111 Properties.uncompress(session_context.old_command_timings_blob, cache = store.cache) |
553 } |
551 } |
554 else None |
552 else None |
555 |
553 |
556 protected def start_job(session_name: String): Unit = { |
554 protected def start_job(session_name: String): Unit = { |
557 val ancestor_results = synchronized { |
555 val ancestor_results = synchronized { |
558 _state.get_results(build_context.session_context(session_name).ancestors) |
556 _state.get_results(build_context.sessions(session_name).ancestors) |
559 } |
557 } |
560 val input_heaps = |
558 val input_heaps = |
561 if (ancestor_results.isEmpty) { |
559 if (ancestor_results.isEmpty) { |
562 SHA1.shasum_meta_info(SHA1.digest(Path.explode("$POLYML_EXE"))) |
560 SHA1.shasum_meta_info(SHA1.digest(Path.explode("$POLYML_EXE"))) |
563 } |
561 } |