Changes between Version 4 and Version 5 of AssignedWork
- Timestamp:
- Feb 16, 2008, 8:26:51 PM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
AssignedWork
v4 v5 1 1 = Assigned work = 2 2 3 This mechanism serves two purposes:3 This mechanism lets you assign a job to: 4 4 5 * To assign a particular job to a particular host. 6 * To assign a particular job to be done on ALL hosts for which an app version exists. This could be used to run application-specific benchmarks, test for hardware or software features, or test CPUs. 5 * a particular host. 6 * one or all of the hosts belonging to a user. 7 * one or all of the hosts belonging to a team 8 * all hosts (this could be used to run application-specific benchmarks, test for hardware or software features, or test CPUs). 7 9 8 10 A host with assigned jobs won't get any other jobs until the assigned ones are finished and reported. … … 19 21 == Creating assigned work == 20 22 21 The [WorkGeneration '''create_work''' script and function] 22 take an optional '''host_id''' argument. 23 If -1 it means assign the job to all hosts. 24 If positive it means assign the job to the host with that ID. 23 The [WorkGeneration '''create_work''' script] 24 take the following optional arguments: 25 26 --assign_all:: 27 assign the job to all hosts 28 --assign_host ID:: 29 assign the job to the given host 30 --assign_user_one ID:: 31 assign the job to one host of the given user 32 --assign_user_all ID:: 33 assign the job to all hosts of the given user 34 --assign_team_one ID:: 35 assign the job to one host of the given team 36 --assign_team_all ID: 37 assign the job to all hosts of the given team 25 38 26 39 The names of work units for assigned jobs must include the string '''asgw''' … … 38 51 39 52 Assignments are stored in an '''assignments''' table. 40 Each record contains a host ID (or -1) and a WU ID.41 53 42 54 If <enable_assignment> is set in the config file, 43 the scheduler checks for assignment records for the given host.55 the scheduler checks for assignments for the given host. 44 56 If it finds any for which the result has not already been reported 45 57 and the job is not in progress, it creates a result record and sends it to the host.