forked from mtusi2026/mtusi2026lab7
fix(pki): isolate concurrent atomic operator file writes
This commit is contained in:
@@ -407,11 +407,15 @@ def main():
|
||||
marker,
|
||||
pending=phase == "after_commit",
|
||||
)
|
||||
wait(
|
||||
lambda j=j: inside(
|
||||
|
||||
def observer_ready(j=j, observer=observer):
|
||||
if observer.done():
|
||||
observer.result()
|
||||
return inside(
|
||||
f"with db.connection() as c: n=c.execute(\"SELECT count(*) n FROM pipeline_events WHERE job_id=%s AND event='crash_observer_ready'\",({j!r},)).fetchone()['n']\nprint(json.dumps(n>0))"
|
||||
)
|
||||
)
|
||||
|
||||
wait(observer_ready)
|
||||
start("worker")
|
||||
at_crash = observer.result(timeout=60)
|
||||
report["active_case"] = {
|
||||
|
||||
Reference in New Issue
Block a user