Added if statements to run algorithms
This commit is contained in:
parent
dcb23c3a0b
commit
c8fbaf6e4b
|
@ -532,13 +532,16 @@ def handle_result_files(session, files):
|
||||||
response = chain(aggregate_target_results.s(result.pk),
|
response = chain(aggregate_target_results.s(result.pk),
|
||||||
map_workload.s(),
|
map_workload.s(),
|
||||||
configuration_recommendation.s()).apply_async()
|
configuration_recommendation.s()).apply_async()
|
||||||
elif session.algorithm == AlgorithmType.ALGORITHM1:
|
elif session.algorithm == AlgorithmType.DDPG:
|
||||||
|
response = chain(train_ddpg.s(result.pk),
|
||||||
|
configuration_recommendation_ddpg.s()).apply_async()
|
||||||
|
elif session.algorithm == AlgorithmType.DNN:
|
||||||
pass
|
pass
|
||||||
elif session.algorithm == AlgorithmType.ALGORITHM2:
|
taskmeta_ids = []
|
||||||
pass
|
current_task = response
|
||||||
elif session.algorithm == AlgorithmType.ALGORITHM3:
|
while current_task:
|
||||||
pass
|
taskmeta_ids.append(current_task.id)
|
||||||
taskmeta_ids = [response.parent.parent.id, response.parent.id, response.id]
|
current_task = current_task.parent
|
||||||
result.task_ids = ','.join(taskmeta_ids)
|
result.task_ids = ','.join(taskmeta_ids)
|
||||||
result.save()
|
result.save()
|
||||||
return HttpResponse("Result stored successfully! Running tuner...(status={}) Result ID:{} "
|
return HttpResponse("Result stored successfully! Running tuner...(status={}) Result ID:{} "
|
||||||
|
|
Loading…
Reference in New Issue