)]}'
{"id":"openstack%2Fmistral~997596","triplet_id":"openstack%2Fmistral~master~I310eff8e7a1cf00a28842df638c7a9a96e77869f","project":"openstack/mistral","branch":"master","hashtags":[],"change_id":"I310eff8e7a1cf00a28842df638c7a9a96e77869f","subject":"scheduler: run in-memory jobs from a single dispatcher","status":"MERGED","created":"2026-07-16 15:01:40.000000000","updated":"2026-08-14 00:18:01.000000000","submitted":"2026-08-14 00:16:29.000000000","submitter":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"total_comment_count":0,"unresolved_comment_count":0,"has_review_started":true,"submission_id":"997596","meta_rev_id":"ef8d51dae59058cde93fa641473038d3f04d97e4","_number":997596,"virtual_id_number":997596,"owner":{"_account_id":11583,"name":"Arnaud Morin","email":"arnaud.morin@gmail.com","username":"arnaudmorin"},"actions":{},"labels":{"Verified":{"approved":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"all":[{"tag":"autogenerated:zuul:gate","value":2,"date":"2026-08-14 00:16:29.000000000","permitted_voting_range":{"min":2,"max":2},"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},{"value":0,"_account_id":11583,"name":"Arnaud Morin","email":"arnaud.morin@gmail.com","username":"arnaudmorin"}],"values":{"-2":"Fails","-1":"Doesn\u0027t seem to work"," 0":"No score","+1":"Works for me","+2":"Verified"},"description":"","default_value":0,"optional":true},"Code-Review":{"approved":{"_account_id":11583,"name":"Arnaud Morin","email":"arnaud.morin@gmail.com","username":"arnaudmorin"},"all":[{"value":0,"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},{"value":2,"date":"2026-08-13 23:29:26.000000000","permitted_voting_range":{"min":2,"max":2},"_account_id":11583,"name":"Arnaud Morin","email":"arnaud.morin@gmail.com","username":"arnaudmorin"}],"values":{"-2":"Do not merge","-1":"This patch needs further work before it can be merged"," 0":"No score","+1":"Looks good to me, but someone else must approve","+2":"Looks good to me (core reviewer)"},"description":"","default_value":0,"optional":true},"Workflow":{"approved":{"_account_id":11583,"name":"Arnaud Morin","email":"arnaud.morin@gmail.com","username":"arnaudmorin"},"all":[{"value":0,"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},{"value":1,"date":"2026-08-13 23:29:26.000000000","permitted_voting_range":{"min":1,"max":1},"_account_id":11583,"name":"Arnaud Morin","email":"arnaud.morin@gmail.com","username":"arnaudmorin"}],"values":{"-1":"Work in progress"," 0":"Ready for reviews","+1":"Approved"},"description":"","default_value":0,"optional":true}},"removable_reviewers":[],"reviewers":{"REVIEWER":[{"_account_id":11583,"name":"Arnaud Morin","email":"arnaud.morin@gmail.com","username":"arnaudmorin"},{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]}]},"pending_reviewers":{},"reviewer_updates":[{"updated":"2026-07-16 16:22:02.000000000","updated_by":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"reviewer":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"state":"REVIEWER"}],"messages":[{"id":"5bf543682859aab960c75aab7a05feb369aa73f2","tag":"autogenerated:gerrit:newPatchSet","author":{"_account_id":11583,"name":"Arnaud Morin","email":"arnaud.morin@gmail.com","username":"arnaudmorin"},"date":"2026-07-16 15:01:40.000000000","message":"Uploaded patch set 1.","accounts_in_message":[],"_revision_number":1},{"id":"b5ea1fc2675a86e2a642c62ed92d1c621bfee844","tag":"autogenerated:zuul:check","author":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"date":"2026-07-16 16:22:02.000000000","message":"Patch Set 1: Verified+1\n\nBuild succeeded (check pipeline).\nhttps://zuul.opendev.org/t/openstack/buildset/cef4053e590e44c695b6621252008762\n\n- openstack-tox-pep8 https://zuul.opendev.org/t/openstack/build/1afdda8fa420436b9a0cc6cd70f67119 : SUCCESS in 6m 03s\n- openstack-tox-py311 https://zuul.opendev.org/t/openstack/build/100ef605af7d448e96fe0b590dda2cc6 : SUCCESS in 11m 14s\n- openstack-tox-py313 https://zuul.opendev.org/t/openstack/build/b4f8e1c3669046c1930a9c50fe46f5b6 : SUCCESS in 10m 15s\n- openstack-tox-py314 https://zuul.opendev.org/t/openstack/build/96f4503ad2394a87b96d43bad72e6e80 : SUCCESS in 14m 48s (non-voting)\n- openstack-tox-docs https://zuul.opendev.org/t/openstack/build/c13510e9aecb432a964399946745d7d2 : SUCCESS in 8m 27s\n- build-openstack-releasenotes https://zuul.opendev.org/t/openstack/build/70be6567b1f14d1da225a66181c21ef1 : SUCCESS in 4m 46s\n- openstack-tox-cover https://zuul.opendev.org/t/openstack/build/9f22bd596f8040228fbbfb6722d7210b : SUCCESS in 20m 12s (non-voting)\n- mistral-devstack https://zuul.opendev.org/t/openstack/build/b5d91a7708284e6d87f2199b3ff710e5 : SUCCESS in 20m 24s\n- mistral-devstack-tempest-ipv6-only https://zuul.opendev.org/t/openstack/build/055ec8b1a21c458597081da7f9d3d86f : SUCCESS in 58m 23s","accounts_in_message":[],"_revision_number":1},{"id":"9d4ec7ac5b94857f7b93ebf4abf46645d9b244e2","author":{"_account_id":11583,"name":"Arnaud Morin","email":"arnaud.morin@gmail.com","username":"arnaudmorin"},"date":"2026-08-13 23:29:26.000000000","message":"Patch Set 1: Code-Review+2 Workflow+1","accounts_in_message":[],"_revision_number":1},{"id":"c7725814bd4bc3ca0e220802cdef6d65b41c6a8e","tag":"autogenerated:zuul:gate","author":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"date":"2026-08-13 23:30:26.000000000","message":"Patch Set 1: -Verified\n\nStarting gate jobs.","accounts_in_message":[],"_revision_number":1},{"id":"343e002740bfb263a18e9214ecfde937d7dbb2ad","tag":"autogenerated:zuul:gate","author":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"date":"2026-08-14 00:16:29.000000000","message":"Patch Set 1: Verified+2\n\nBuild succeeded (gate pipeline).\nhttps://zuul.opendev.org/t/openstack/buildset/4f86082da1f0406fbd654a3d1abcf541\n\n- openstack-tox-pep8 https://zuul.opendev.org/t/openstack/build/a1518d64b010407683f4d6eb35cdc9dc : SUCCESS in 2m 25s\n- openstack-tox-py311 https://zuul.opendev.org/t/openstack/build/81596858f25643cb9aa6148e1112c01f : SUCCESS in 8m 42s\n- openstack-tox-py313 https://zuul.opendev.org/t/openstack/build/14064f8e869c466bac777fa429896c91 : SUCCESS in 9m 28s\n- openstack-tox-docs https://zuul.opendev.org/t/openstack/build/e19cbbeb5be74d0798f0e0e570436d93 : SUCCESS in 8m 43s\n- build-openstack-releasenotes https://zuul.opendev.org/t/openstack/build/ae3207f3667f448fad3d6f9c617d3f69 : SUCCESS in 5m 40s\n- mistral-devstack https://zuul.opendev.org/t/openstack/build/49f38a9183c74a269970548a2b4c14ae : SUCCESS in 34m 52s\n- mistral-devstack-tempest-ipv6-only https://zuul.opendev.org/t/openstack/build/a5c87622fb9d4a4990229b424cf80c67 : SUCCESS in 40m 08s","accounts_in_message":[],"_revision_number":1},{"id":"3dfeff1b73d71dc4cc6962ec4403f14bc446143d","tag":"autogenerated:gerrit:merged","author":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"date":"2026-08-14 00:16:29.000000000","message":"Change has been successfully merged","accounts_in_message":[],"_revision_number":1},{"id":"ef8d51dae59058cde93fa641473038d3f04d97e4","tag":"autogenerated:zuul:promote","author":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]},"date":"2026-08-14 00:18:01.000000000","message":"Patch Set 1:\n\nBuild succeeded (promote pipeline).\nhttps://zuul.opendev.org/t/openstack/buildset/fc05d59ba2f9439c8ba2e900e96dd49b\n\n- promote-openstack-tox-docs https://zuul.opendev.org/t/openstack/build/34e470f50d3b4db09f709860f59dc0c4 : SUCCESS in 40s","accounts_in_message":[],"_revision_number":1}],"current_revision_number":1,"current_revision":"256ba01df0804c09b7030cab2652c8d550bd82db","revisions":{"256ba01df0804c09b7030cab2652c8d550bd82db":{"kind":"REWORK","_number":1,"created":"2026-07-16 15:01:40.000000000","uploader":{"_account_id":11583,"name":"Arnaud Morin","email":"arnaud.morin@gmail.com","username":"arnaudmorin"},"ref":"refs/changes/96/997596/1","fetch":{"anonymous http":{"url":"https://review.opendev.org/openstack/mistral","ref":"refs/changes/96/997596/1","commands":{"Checkout":"git fetch https://review.opendev.org/openstack/mistral refs/changes/96/997596/1 \u0026\u0026 git checkout FETCH_HEAD","Cherry Pick":"git fetch https://review.opendev.org/openstack/mistral refs/changes/96/997596/1 \u0026\u0026 git cherry-pick FETCH_HEAD","Format Patch":"git fetch https://review.opendev.org/openstack/mistral refs/changes/96/997596/1 \u0026\u0026 git format-patch -1 --stdout FETCH_HEAD","Pull":"git pull https://review.opendev.org/openstack/mistral refs/changes/96/997596/1"}}},"commit":{"parents":[{"commit":"f2985acbecae46e9e5b3cc167161a0d789ecee52","subject":"scheduler: cancel DefaultScheduler timers on stop","web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/mistral/commit/f2985acbecae46e9e5b3cc167161a0d789ecee52"}]}],"author":{"name":"Arnaud Morin","email":"arnaud.morin@gmail.com","date":"2026-07-14 08:47:35.000000000","tz":120},"committer":{"name":"Arnaud Morin","email":"arnaud.morin@gmail.com","date":"2026-07-14 08:47:35.000000000","tz":120},"subject":"scheduler: run in-memory jobs from a single dispatcher","message":"scheduler: run in-memory jobs from a single dispatcher\n\nPreviously the DefaultScheduler created one threading.Timer, and thus\none OS thread, per scheduled job, including jobs delayed by hours such\nas wait-before policies. The number of threads therefore grew with the\nnumber of pending jobs.\n\nKeep pending jobs in a single in-memory heap ordered by execution time\nand run them from one dispatcher thread that submits due jobs to a small\nthread pool. The number of threads is now bounded by the pool size\n(scheduler.in_memory_workers) regardless of how many jobs are scheduled,\nwhile the exact firing time is preserved.\n\nSigned-off-by: Arnaud Morin \u003carnaud.morin@gmail.com\u003e\nCo-Authored-By: Claude Opus 4.8 (1M context) \u003cnoreply@anthropic.com\u003e\nChange-Id: I310eff8e7a1cf00a28842df638c7a9a96e77869f\n","web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/mistral/commit/256ba01df0804c09b7030cab2652c8d550bd82db"}],"resolve_conflicts_web_links":[{"name":"gitea","tooltip":"Open in GitWeb","url":"https://opendev.org/openstack/mistral/commit/256ba01df0804c09b7030cab2652c8d550bd82db"}]},"branch":"refs/heads/master"}},"requirements":[],"submit_records":[{"rule_name":"gerrit~DefaultSubmitRule","status":"CLOSED","labels":[{"label":"Verified","status":"MAY","applied_by":{"_account_id":22348,"name":"Zuul","username":"zuul","tags":["SERVICE_USER"]}},{"label":"Code-Review","status":"MAY","applied_by":{"_account_id":11583,"name":"Arnaud Morin","email":"arnaud.morin@gmail.com","username":"arnaudmorin"}},{"label":"Workflow","status":"MAY","applied_by":{"_account_id":11583,"name":"Arnaud Morin","email":"arnaud.morin@gmail.com","username":"arnaudmorin"}}]}],"submit_requirements":[{"name":"Verified","description":"Verified in gate by CI","status":"SATISFIED","is_legacy":false,"submittability_expression_result":{"expression":"label:Verified\u003dMAX AND -label:Verified\u003dMIN","fulfilled":true,"status":"PASS","passing_atoms":["label:Verified\u003dMAX"],"failing_atoms":["label:Verified\u003dMIN"],"atom_explanations":{"label:Verified\u003dMAX":"","label:Verified\u003dMIN":""}}},{"name":"Code-Review","description":"Code reviewed by core reviewer","status":"SATISFIED","is_legacy":false,"submittability_expression_result":{"expression":"label:Code-Review\u003dMAX AND -label:Code-Review\u003dMIN","fulfilled":true,"status":"PASS","passing_atoms":["label:Code-Review\u003dMAX"],"failing_atoms":["label:Code-Review\u003dMIN"],"atom_explanations":{"label:Code-Review\u003dMAX":"","label:Code-Review\u003dMIN":""}}},{"name":"Workflow","description":"Approved for gate by core reviewer","status":"SATISFIED","is_legacy":false,"submittability_expression_result":{"expression":"label:Workflow\u003dMAX AND -label:Workflow\u003dMIN","fulfilled":true,"status":"PASS","passing_atoms":["label:Workflow\u003dMAX"],"failing_atoms":["label:Workflow\u003dMIN"],"atom_explanations":{"label:Workflow\u003dMAX":"","label:Workflow\u003dMIN":""}}}]}
