Skip to content
Snippets Groups Projects
Commit 389857e0 authored by user's avatar user
Browse files

wip: debugging

parent 152eab4b
No related branches found
No related tags found
No related merge requests found
......@@ -58,13 +58,14 @@ def cocal_task(db, state, cocal_session):
# wait for user upload to finish
upload_is_ready = cocal.wait_for_user_upload(timeout=10)
# continue
if upload_is_ready:
# do the necessary calculations
# cocal.perform_dummy_computations()
cocal.perform_computations()
cocal.perform_dummy_computations()
# cocal.perform_computations()
# generate (dummy) DCC
# cocal.generate_dummy_dcc()
......@@ -76,6 +77,7 @@ def cocal_task(db, state, cocal_session):
# set result status
cocal_session.result_state = "ready"
cocal_session.result_date = datetime.datetime.now()
cocal_session.commit()
db.commit()
# log timeout error if no upload available
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment