Skip to content
Snippets Groups Projects
Commit 2e4145c5 authored by Jorrit Schaap's avatar Jorrit Schaap
Browse files

Merge branch 'idols-update' into 'master'

Reduce label size + set fixed_time for scheduler

See merge request !1123
parents 30b6a1a4 ba34079f
No related branches found
No related tags found
1 merge request!1123Reduce label size + set fixed_time for scheduler
......@@ -121,7 +121,8 @@ with TMSSsession.create_from_dbcreds_for_ldap(args.rest_api_credentials) as clie
spec_doc = client.get_scheduling_unit_observing_strategy_template_specification_with_just_the_parameters(template['name'], template['version'])
# override with our specific wishes
label = '%s_spectrum_LBA-%s-run1' % ("Sun" if period=='daytime' else "IDOLS_nighttime", datestamp.strftime('%Y%m%d'),)
label = '%s_LBA-%s' % ("Sun" if period=='daytime' else "IDOLS_nighttime", datestamp.strftime('%Y%m%d'),)
spec_doc['scheduling_constraints_doc']['scheduler'] = "fixed_time"
spec_doc['scheduling_constraints_doc']['time']['at'] = start_time.strftime('%Y-%m-%dT%H:%M:%SZ')
spec_doc['tasks']['BF 1 station LBA']['specifications_doc']['duration'] = (end_time-start_time).total_seconds()
spec_doc['tasks']['BF 1 station LBA']['short_description'] = label
......
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