From ba34079f1dd61db13a6ff3fd8768d4d863de78e8 Mon Sep 17 00:00:00 2001 From: Fanna Lautenbach <lautenbach@astron.nl> Date: Fri, 21 Jul 2023 11:31:08 +0200 Subject: [PATCH] reduce label size + set fixed_time for scheduler --- SAS/TMSS/scripts/tmss_create_idols_scheduling_units | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SAS/TMSS/scripts/tmss_create_idols_scheduling_units b/SAS/TMSS/scripts/tmss_create_idols_scheduling_units index 33ec929592a..96e85ba24bf 100755 --- a/SAS/TMSS/scripts/tmss_create_idols_scheduling_units +++ b/SAS/TMSS/scripts/tmss_create_idols_scheduling_units @@ -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 -- GitLab