jolt 0.9.371__py3-none-any.whl → 0.9.373__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
jolt/cli.py CHANGED
@@ -374,9 +374,11 @@ def build(ctx, task, network, keep_going, default, local,
374
374
  debug=debug)
375
375
 
376
376
  with progress:
377
+ in_progress = set()
378
+
377
379
  while dag.has_tasks() or not queue.empty():
378
380
  # Find all tasks ready to be executed
379
- leafs = dag.select(lambda graph, task: task.is_ready())
381
+ leafs = dag.select(lambda graph, task: task.is_ready() and task not in in_progress)
380
382
 
381
383
  # Order the tasks by their weights to improve build times
382
384
  leafs.sort(key=lambda x: x.weight)
@@ -385,6 +387,7 @@ def build(ctx, task, network, keep_going, default, local,
385
387
  task = leafs.pop()
386
388
  executor = strategy.create_executor(session, task)
387
389
  queue.submit(executor)
390
+ in_progress.add(task)
388
391
 
389
392
  task, error = queue.wait()
390
393
 
@@ -745,13 +748,16 @@ def download(ctx, task, deps, copy, copy_all):
745
748
 
746
749
  try:
747
750
  with log.progress("Progress", dag.number_of_tasks(), " tasks", estimates=False, debug=False) as p:
751
+ in_progress = set()
752
+
748
753
  while dag.has_tasks() or not queue.empty():
749
- leafs = dag.select(lambda graph, task: task.is_ready())
754
+ leafs = dag.select(lambda graph, task: task.is_ready() and task not in in_progress)
750
755
 
751
756
  while leafs:
752
757
  task = leafs.pop()
753
758
  executor = strategy.create_executor({}, task)
754
759
  queue.submit(executor)
760
+ in_progress.add(task)
755
761
 
756
762
  task, error = queue.wait()
757
763
  p.update(1)
jolt/plugins/gdb.py CHANGED
@@ -86,13 +86,16 @@ def gdb(ctx, task, default, machine_interface, no_binary, gdb_args):
86
86
 
87
87
  try:
88
88
  with log.progress("Progress", dag.number_of_tasks(), " tasks", estimates=False, debug=False) as p:
89
+ in_progress = set()
90
+
89
91
  while dag.has_tasks() or not queue.empty():
90
- leafs = dag.select(lambda graph, task: task.is_ready())
92
+ leafs = dag.select(lambda graph, task: task.is_ready() and task not in in_progress)
91
93
 
92
94
  while leafs:
93
95
  task = leafs.pop()
94
96
  executor = strategy.create_executor({}, task)
95
97
  queue.submit(executor)
98
+ in_progress.add(task)
96
99
 
97
100
  task, _ = queue.wait()
98
101
 
@@ -242,8 +242,10 @@ def compdb(ctx, task, default):
242
242
 
243
243
  try:
244
244
  with log.progress("Progress", dag.number_of_tasks(), " tasks", estimates=False, debug=False) as progress:
245
+ in_progress = set()
246
+
245
247
  while dag.has_tasks() or not queue.empty():
246
- leafs = dag.select(lambda graph, task: task.is_ready())
248
+ leafs = dag.select(lambda graph, task: task.is_ready() and task not in in_progress)
247
249
 
248
250
  # Order the tasks by their weights to improve build times
249
251
  leafs.sort(key=lambda x: x.weight)
@@ -252,6 +254,7 @@ def compdb(ctx, task, default):
252
254
  task = leafs.pop()
253
255
  executor = strategy.create_executor({}, task)
254
256
  queue.submit(executor)
257
+ in_progress.add(task)
255
258
 
256
259
  task, _ = queue.wait()
257
260
 
jolt/version.py CHANGED
@@ -1 +1 @@
1
- __version__ = "0.9.371"
1
+ __version__ = "0.9.373"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: jolt
3
- Version: 0.9.371
3
+ Version: 0.9.373
4
4
  Summary: A task executor
5
5
  Home-page: https://github.com/srand/jolt
6
6
  Author: Robert Andersson
@@ -2,7 +2,7 @@ jolt/__init__.py,sha256=C1WNj-iUNT1gtK2v7zxlnyMLW9dsYcM_yzlltJEYY6Y,3267
2
2
  jolt/__main__.py,sha256=sAASLJ5dhK8jTKwh1vWAGQ2-qgLEgrAQlR-hIC75Ze0,1670
3
3
  jolt/cache.py,sha256=WwYkOhuSDF8M_cUjnij6Sj7rMUi6Lk6x2sg1iir9_hw,79401
4
4
  jolt/chroot.py,sha256=lnejhnjO3takDBZewBOvVlN2e8GWKhXnjFlqQp_zAJ4,4666
5
- jolt/cli.py,sha256=hdeVgd4ENdGoNZgaeGVNkCJfghFJ621rgjZ2e1BUrC0,41661
5
+ jolt/cli.py,sha256=SQUk1v0g4if1ZM-odlYWJquELMExZ3jVgxUXhton-GE,41867
6
6
  jolt/colors.py,sha256=P6vhaILGoOn8odEwQ6-z871YQoTe3HRLgS6clavwVHs,737
7
7
  jolt/common_pb2.py,sha256=Oe9cyZ4qNyS2aTunjiO7tAO3XVw8XkZ1M7TaTmss3bs,6335
8
8
  jolt/common_pb2_grpc.py,sha256=1oboBPFxaTEXt9Aw7EAj8gXHDCNMhZD2VXqocC9l_gk,159
@@ -23,7 +23,7 @@ jolt/tasks.py,sha256=fD-huf0h0xN5x3MjClaZMRDPuhjwHeF3SBnqXXlHjtM,115888
23
23
  jolt/timer.py,sha256=PE-7vmsqZpF73e_cKSsrhd36-A7fJ9_XGYI_oBWJn5w,644
24
24
  jolt/tools.py,sha256=LpmBzeQCl--7y2wAbe1flufUfO7wDeP7v4tqzgbvdaI,80097
25
25
  jolt/utils.py,sha256=6TphNzqr2AAQ55bGDD36YoJSi8qQM3FRkrY1iIkhtNA,18771
26
- jolt/version.py,sha256=Nk7N3td0zhxxxO_1oC18Zw4tOcvr_mbFW3POs8CeIKI,24
26
+ jolt/version.py,sha256=RYK5zO_o7KDGDj7bwALue6eJUFIyieMoDm0Mi08R0ko,24
27
27
  jolt/version_utils.py,sha256=tNCGT6ZmSGFHW1aw2Hx1l19m-RR1UnTN6xJV1I54KRw,3900
28
28
  jolt/xmldom.py,sha256=SbygiDUMYczzWGxXa60ZguWS6Nztg8gDAirdbtjT15I,5982
29
29
  jolt/bin/fstree-darwin-x86_64,sha256=i4Ppbdr7CxsEhJzWpy3GMB5Gn5ikmskh41MyUwQS3-o,29549000
@@ -45,7 +45,7 @@ jolt/plugins/docker.py,sha256=JYgwAHczci25JO0MeJ_E8G7t0ZcJQEvu87jYi9ZLJqw,21100
45
45
  jolt/plugins/email.py,sha256=esONwpn7xKJLh4SYGZ0GpSZ2UwzWsckfsAPCeYdZSVw,3549
46
46
  jolt/plugins/email.xslt,sha256=3vrrfnG-KH_cfJq6RDOXHKQxKd-6s28qy4znapGaciM,8513
47
47
  jolt/plugins/environ.py,sha256=k382rvEKWj-nlibJcCUWcYtYheU8p9df9ZY0DAAkjDE,3561
48
- jolt/plugins/gdb.py,sha256=pAoUSWvONCPXazdPVm7lAd6A9kPwZa7gfXtt8yMtwKI,6185
48
+ jolt/plugins/gdb.py,sha256=gg-H_IQvRRPDZpk-djdIU7j3PO8CDINCSxWOemD2fA8,6288
49
49
  jolt/plugins/gerrit.py,sha256=tc8NeIDAg3mZJINU5aZg1fs3YsaVxM_MvkHa149aAIs,768
50
50
  jolt/plugins/git.py,sha256=AiPzYl0eqPcrd1bw8il42cUUrBLcCQIAG4f54wSVhyQ,21204
51
51
  jolt/plugins/golang.py,sha256=vV4iRoJpWkyfrBa96s6jgU8Sz8GnGl-lzG_FSj5epzQ,2049
@@ -54,7 +54,7 @@ jolt/plugins/http.py,sha256=HwuABHR2tuWm_jBdQpCO3AMkjFdwOzUfEi26X-2v_y8,3816
54
54
  jolt/plugins/junit.py,sha256=_1vXMEQBNuLbwc8l4UFm1iONYdehxJxWDRgFtPy3do8,1342
55
55
  jolt/plugins/linux.py,sha256=GfytBgIFcWjKDZ1ozTqksboQi80FHJHtmhJQ8QGSdzE,30363
56
56
  jolt/plugins/logstash.py,sha256=ShUdqSRyQL_ATlgHwLP-uI1mJXprs15knyWbk58nMFo,1847
57
- jolt/plugins/ninja-compdb.py,sha256=ig3xGwxrfTQc287GwAFhsPJ-TFYAtsM8ITci2YeyXlA,10886
57
+ jolt/plugins/ninja-compdb.py,sha256=Otxz-nQnJx-aAPuAf8-T0AOi_34ENHGb5gypGVVGFB0,10989
58
58
  jolt/plugins/ninja.py,sha256=7ToQS3Pl81R2qoSRvGvWlkITONjOwV2wRklrB64wURQ,102787
59
59
  jolt/plugins/nodejs.py,sha256=HHDbvmdlqnao3qOtpCD9UY7iyTIX4gb2WxKUBtn-3cM,1879
60
60
  jolt/plugins/paths.py,sha256=DgiPI5K5bV3lVuyNEMIjRO26iTwf6RL5-2WPQ3rSmj8,1920
@@ -85,8 +85,8 @@ jolt/templates/cxxexecutable.cmake.template,sha256=f0dg1VOFlamlF8fuHFTki5dsJ2ssS
85
85
  jolt/templates/cxxlibrary.cmake.template,sha256=GMEG2G3QoY3E5fsNer52zOqgM221-abeCkV__mVbZ94,1750
86
86
  jolt/templates/export.sh.template,sha256=PKkflGXFbq70EIsowqcnLvzbnEDnqh_WgC4E_JNT0VE,1937
87
87
  jolt/templates/timeline.html.template,sha256=xdqvFBmhE8XRQaWgcIFBVbd__9HdRq6O-U0o276PyjU,1222
88
- jolt-0.9.371.dist-info/METADATA,sha256=yFBoMIrEMezxq39CyipEV5rYXSSePbJ6jBoXsfk16t4,5558
89
- jolt-0.9.371.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
90
- jolt-0.9.371.dist-info/entry_points.txt,sha256=VZ-QH38Z9HJc1O57wfzr-soHn6exwc3N0TSrRum4tYg,44
91
- jolt-0.9.371.dist-info/top_level.txt,sha256=HwzVmAwUrvCUUHRi3zUfcpdKTsdNrZmPCvsrsWSFyqE,5
92
- jolt-0.9.371.dist-info/RECORD,,
88
+ jolt-0.9.373.dist-info/METADATA,sha256=Dwyjtlg8IPfyv4-cn2zgtv-3NdQTb_AXm0R_wTeEcT0,5558
89
+ jolt-0.9.373.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
90
+ jolt-0.9.373.dist-info/entry_points.txt,sha256=VZ-QH38Z9HJc1O57wfzr-soHn6exwc3N0TSrRum4tYg,44
91
+ jolt-0.9.373.dist-info/top_level.txt,sha256=HwzVmAwUrvCUUHRi3zUfcpdKTsdNrZmPCvsrsWSFyqE,5
92
+ jolt-0.9.373.dist-info/RECORD,,
File without changes