Skip to content
Snippets Groups Projects
Commit df78ccc8 authored by Soichiro Morisaki's avatar Soichiro Morisaki
Browse files

gwcelery/tasks/inference.py: drop _upload_url from bilby workflow, as result...

gwcelery/tasks/inference.py: drop _upload_url from bilby workflow, as result page is now not produced by default.
parent 25419d27
No related branches found
No related tags found
1 merge request!871Drop _upload_url from bilby workflow
......@@ -607,15 +607,11 @@ def dag_finished(rundir, preferred_event_id, superevent_id, pe_pipeline):
upload_tasks += upload_results_tasks(
dir, name1, superevent_id, comment, 'pe', name2)
# FIXME: _upload_url.si has to be out of group for
# gracedb.create_label.si to run
(
_upload_url.si(pe_results_path, superevent_id, pe_pipeline)
|
group(upload_tasks)
|
clean_up.si(rundir)
).delay()
chain = group(upload_tasks) | clean_up.si(rundir)
if pe_pipeline == 'lalinference':
chain = \
_upload_url.si(pe_results_path, superevent_id, pe_pipeline) | chain
chain.delay()
if pe_pipeline == 'bilby':
gracedb.create_label.delay('PE_READY', superevent_id)
......
......@@ -377,7 +377,10 @@ def test_dag_finished(monkeypatch, tmp_path, pipeline):
inference.dag_finished(rundir, gid, 'S1234', pipeline)
assert upload.call_count == len(paths)
_upload_url.assert_called_once()
if pipeline == 'lalinference':
_upload_url.assert_called_once()
else:
_upload_url.assert_not_called()
if pipeline == 'bilby':
create_label.assert_called_once()
else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment