ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/PKGTOOLS/scheduler.py
Revision 1.10 - (view) (annotate) - [select for diffs]
Tue Dec 4 14:18:09 2012 UTC (12 years, 4 months ago) by eulisse
Branch: MAIN
CVS Tags: HEAD, V00-21-03, V00-21-04, V00-21-05, V00-21-06, V00-21-07, V00-21-08, V00-21-09, V00-22-00, V00-22-01, V00-22-02, ge20130117
Changes since 1.9: +26 -10 lines
Diff to previous 1.9
Add dummy final job.

* This job is dependent from any other task being scheduled and will
  therefore always be scheduled last. This is useful to avoid dead-lock
  situations because it forces all threads to remain active until all
  the tasks have terminated.
* Unit tests updated accordingly.

Revision 1.9 - (view) (annotate) - [select for diffs]
Thu Feb 16 21:16:10 2012 UTC (13 years, 2 months ago) by eulisse
Branch: MAIN
CVS Tags: V00-20-28, V00-20-29, V00-20-30, V00-20-31, V00-20-32, V00-20-33, V00-20-34, V00-20-35, V00-20-36, V00-20-37, V00-21-00, V00-21-01, V00-21-02, ge-V00-20-29-uploadNew, ge20120604-llvm
Changes since 1.8: +1 -16 lines
Diff to previous 1.8
V00-20-23 back on top.

Revision 1.8
Thu Feb 16 21:11:33 2012 UTC (13 years, 2 months ago) by eulisse
Branch: MAIN
Changes since 1.7: +0 -0 lines
FILE REMOVED
V00-16-05-19  back on top.

Revision 1.7 - (view) (annotate) - [select for diffs]
Mon Jan 30 12:42:21 2012 UTC (13 years, 2 months ago) by eulisse
Branch: MAIN
Changes since 1.6: +16 -1 lines
Diff to previous 1.6
Check for self depending tasks added.

Revision 1.6 - (view) (annotate) - [select for diffs]
Sun Jan 8 22:35:10 2012 UTC (13 years, 3 months ago) by eulisse
Branch: MAIN
CVS Tags: V00-20-14, V00-20-15, V00-20-16, V00-20-18, V00-20-19, V00-20-20, V00-20-21, V00-20-22, V00-20-22-01, V00-20-23, V00-20-24, V00-20-25, V00-20-26, V00-20-27
Changes since 1.5: +3 -3 lines
Diff to previous 1.5
Use backward compatible currentThread in place of current_thread.

Revision 1.5 - (view) (annotate) - [select for diffs]
Sun Jan 8 22:27:25 2012 UTC (13 years, 3 months ago) by eulisse
Branch: MAIN
Changes since 1.4: +17 -4 lines
Diff to previous 1.4
Better errors when an exception is raised.

Revision 1.4 - (view) (annotate) - [select for diffs]
Sun Jan 8 14:33:00 2012 UTC (13 years, 3 months ago) by eulisse
Branch: MAIN
Changes since 1.3: +17 -0 lines
Diff to previous 1.3
Add test case which mimics cmsBuild behavior.

Revision 1.3 - (view) (annotate) - [select for diffs]
Fri Jan 6 16:05:53 2012 UTC (13 years, 3 months ago) by eulisse
Branch: MAIN
Changes since 1.2: +104 -32 lines
Diff to previous 1.2
Support for serial tasks.

* Serial tasks get executed once at the time (doh).
* Serial tasks can depend on each other (no checks for dependency loops).
* Serial and parallel tasks can be executed in parallel (doh) and can depend
  on each other.
* Scheduler.put() method renamed to Scheduler.parallel().

Revision 1.2 - (view) (annotate) - [select for diffs]
Thu Jan 5 09:16:51 2012 UTC (13 years, 3 months ago) by eulisse
Branch: MAIN
Changes since 1.1: +28 -2 lines
Diff to previous 1.1
Better error management.

* Handle tasks which raise exceptions.
* Keep track of failure reasons of tasks.

Revision 1.1 - (view) (annotate) - [select for diffs]
Wed Jan 4 14:07:53 2012 UTC (13 years, 3 months ago) by eulisse
Branch: MAIN
New scheduler to be used for fetch / build / install tasks.

* Lockless.
* One queue for parallel tasks, one queue serial tasks.
* Handles dependencies.
* In case of errors, completes all the completable tasks rather than quitting
  immediately.

Still needs some cleanups, but it's good enough to attempt integrating it in
cmsBuild. Unit tests by simply executing the file.

Convenience Links

Links to HEAD: (view) (annotate)

Compare Revisions

This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, select a symbolic revision name using the selection box, or choose 'Use Text Field' and enter a numeric revision.

  Diffs between and
  Type of Diff should be a