, _yacsTask(yacsTask)
{
Container * yacsContainer = yacsTask->getContainer();
- if(yacsContainer != nullptr && !yacsTask->canAcceptImposedResource())
+ if(yacsContainer != nullptr && yacsTask->canAcceptImposedResource())
{
_type.ignoreResources = false;
_type.name = yacsContainer->getName();
if (isPyThread) _save = PyEval_SaveThread(); // allow Python threads when embedded in a Python thread
try
{
- RunB(graph, debug, fromscratch);
+ RunW(graph, debug, fromscratch);
}
catch (YACS::Exception& e)
{
void btest(); // ignore resources
};
+/**
+ * General test with 150 tasks of 3 types:
+ * - 50 tasks which need 4 cores for 2s each
+ * - 50 tasks which need 1 core for 1s each
+ * - 50 tasks which need no core but take 2s each
+ * We use 2 resources: 10 cores and 18 cores
+ * We verify the global time of execution.
+ */
void MyTest::atest()
{
constexpr std::size_t resourcesNumber = 2;
}
+/**
+ * Test the case of tasks which need no resources and can be run whithout
+ * waiting.
+ */
void MyTest::btest()
{
Checker<1, 1> check;
ex.RunW(p,0)
self.assertEqual(p.getState(),pilot.DONE)
- self.skipTest("Skip HPContainertest")
# run remote
p=l.load(fname)
pg=pilot.PlayGround()