Changeset 6433
- Timestamp:
- Mar 14, 2014, 9:04:02 AM (9 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/doc/src/docbook/appendix/incompatible.xml
r6429 r6433 104 104 wrapper extension, but the recommendation is to update those plug-in to the 105 105 new system. See <xref linkend="extensions_developer.login-manager" /> for more information. 106 </para> 107 108 <bridgehead>Setting parameters for a job no longer set it to status=WAITING</bridgehead> 109 <para> 110 Added <methodname>Job.setScheduled()</methodname> to switch the state 111 from <constant>UNCONFIGURED</constant> to <constant>WAITING</constant>. 112 A job can't be executed before it has entered the <constant>WAITING</constant> 113 state. The change makes it possible to register a job and some parameters for 114 it and remain in the <constant>UNCONFIGURED</constant> state. 106 115 </para> 107 116 -
trunk/src/test/TestJobAgent.java
r6127 r6433 363 363 Job job = Job.getNew(dc, plugin, null, null); 364 364 job.setName(plugin.getName()); 365 job.setParameterValue("dummy", new StringParameterType(), "dummy"); // To end up with status = WAITING 365 job.setParameterValue("dummy", new StringParameterType(), "dummy"); 366 job.setScheduled(null, JobAgent.getById(dc, agentId)); // To end up with status = WAITING 366 367 dc.saveItem(job); 367 368 dc.commit(); -
trunk/src/test/TestPluginDefinition.java
r5596 r6433 281 281 job.setParameterValue("shouldFail", new BooleanParameterType(), shouldFail); 282 282 job.setParameterValue("numNews", new IntegerParameterType(), numNews); 283 job.setScheduled(null, null); 283 284 dc.saveItem(job); 284 285 dc.commit(); -
trunk/src/test/net/sf/basedb/test/PluginUtil.java
r5765 r6433 144 144 DbControl dc = TestUtil.getDbControl(); 145 145 job = Job.getById(dc, job.getId()); 146 if (job.getStatus() == Job.Status.UNCONFIGURED) 147 { 148 job.setScheduled(null, null); 149 } 146 150 PluginExecutionRequest request = 147 151 job.execute(new ConsoleProgressReporter(false), TestUtil.getLocalIp());
Note: See TracChangeset
for help on using the changeset viewer.