Skip to content

Commit 69cd162

Browse files
committed
fix: updated jobs to run at lunch
1 parent b253032 commit 69cd162

File tree

1 file changed

+91
-96
lines changed
  • infra/terraform/environments/dev

1 file changed

+91
-96
lines changed

infra/terraform/environments/dev/main.tf

Lines changed: 91 additions & 96 deletions
Original file line numberDiff line numberDiff line change
@@ -276,37 +276,36 @@ module "service" {
276276
name = "ch-vs-olcs-diffs",
277277
commands = ["batch:ch-vs-olcs-diffs"],
278278
},
279-
# Environment is not up at this time
280-
# {
281-
# name = "clean-up-variations",
282-
# commands = ["batch:clean-up-variations"],
283-
# timeout = 43200,
284-
# schedule = "cron(00 02 * * ? *)",
285-
# },
286-
# {
287-
# name = "cns",
288-
# commands = ["batch:cns"],
289-
# timeout = 43200,
290-
# schedule = "cron(30 18 ? * 1 *)",
291-
# },
292-
# {
293-
# name = "create-psv-licence-surrender-task",
294-
# commands = ["batch:create-psv-licence-surrender-task"],
295-
# timeout = 43200,
296-
# schedule = "cron(00 02 * * ? *)",
297-
# },
298-
# {
299-
# name = "psv-operator-list-export",
300-
# commands = ["batch:data-gov-uk-export", "-v", "--report-name=psv-operator-list", "--path=/tmp/"],
301-
# timeout = 43200,
302-
# schedule = "cron(00 02 ? * 1 *)",
303-
# },
304-
# {
305-
# name = "international-goods-export",
306-
# commands = ["batch:data-gov-uk-export", "-v", "--report-name=international-goods", "--path=/tmp/"],
307-
# timeout = 43200,
308-
# schedule = "cron(00 02 ? * 1 *)",
309-
# },
279+
{
280+
name = "clean-up-variations",
281+
commands = ["batch:clean-up-variations"],
282+
timeout = 43200,
283+
schedule = "cron(00 13 * * ? *)",
284+
},
285+
{
286+
name = "cns",
287+
commands = ["batch:cns"],
288+
timeout = 43200,
289+
schedule = "cron(30 13 ? * 1 *)",
290+
},
291+
{
292+
name = "create-psv-licence-surrender-task",
293+
commands = ["batch:create-psv-licence-surrender-task"],
294+
timeout = 43200,
295+
schedule = "cron(00 13 * * ? *)",
296+
},
297+
{
298+
name = "psv-operator-list-export",
299+
commands = ["batch:data-gov-uk-export", "-v", "--report-name=psv-operator-list", "--path=/tmp/"],
300+
timeout = 43200,
301+
schedule = "cron(00 13 ? * 1 *)",
302+
},
303+
{
304+
name = "international-goods-export",
305+
commands = ["batch:data-gov-uk-export", "-v", "--report-name=international-goods", "--path=/tmp/"],
306+
timeout = 43200,
307+
schedule = "cron(00 13 ? * 1 *)",
308+
},
310309
{
311310
name = "data-retention-populate",
312311
commands = ["batch:data-retention", "--populate"],
@@ -327,31 +326,30 @@ module "service" {
327326
name = "database-maintenance",
328327
commands = ["batch:database-maintenance"],
329328
},
330-
# Environment is not up at this time
331-
# {
332-
# name = "digital-continuation-reminders",
333-
# commands = ["batch:digital-continuation-reminders"],
334-
# timeout = 43200,
335-
# schedule = "cron(00 02 * * ? *)",
336-
# },
337-
# {
338-
# name = "duplicate-vehicle-warning",
339-
# commands = ["batch:duplicate-vehicle-warning"],
340-
# timeout = 43200,
341-
# schedule = "cron(30 21 ? * 2-6 *)",
342-
# },
343-
# {
344-
# name = "enqueue-ch-compare",
345-
# commands = ["batch:enqueue-ch-compare"],
346-
# timeout = 1800,
347-
# schedule = "cron(0 21 ? * 3 *)",
348-
# },
349-
# {
350-
# name = "expire-bus-registration",
351-
# commands = ["batch:expire-bus-registration"],
352-
# timeout = 43200,
353-
# schedule = "cron(05 0 * * ? *)",
354-
# },
329+
{
330+
name = "digital-continuation-reminders",
331+
commands = ["batch:digital-continuation-reminders"],
332+
timeout = 43200,
333+
schedule = "cron(00 13 * * ? *)",
334+
},
335+
{
336+
name = "duplicate-vehicle-warning",
337+
commands = ["batch:duplicate-vehicle-warning"],
338+
timeout = 43200,
339+
schedule = "cron(30 13 ? * 2-6 *)",
340+
},
341+
{
342+
name = "enqueue-ch-compare",
343+
commands = ["batch:enqueue-ch-compare"],
344+
timeout = 1800,
345+
schedule = "cron(0 13 ? * 3 *)",
346+
},
347+
{
348+
name = "expire-bus-registration",
349+
commands = ["batch:expire-bus-registration"],
350+
timeout = 43200,
351+
schedule = "cron(05 13 * * ? *)",
352+
},
355353
{
356354
name = "flag-urgent-tasks",
357355
commands = ["batch:flag-urgent-tasks"],
@@ -362,25 +360,24 @@ module "service" {
362360
name = "import-users-from-csv",
363361
commands = ["batch:import-users-from-csv"],
364362
},
365-
# Environment is not up at this time
366-
# {
367-
# name = "inspection-request-email",
368-
# commands = ["batch:inspection-request-email"],
369-
# timeout = 1800,
370-
# schedule = "cron(0 00-04 * * ? *)",
371-
# },
372-
# {
373-
# name = "interim-end-date-enforcement",
374-
# commands = ["batch:interim-end-date-enforcement"],
375-
# timeout = 43200,
376-
# schedule = "cron(00 02 * * ? *)",
377-
# },
378-
# {
379-
# name = "last-tm-letter",
380-
# commands = ["batch:last-tm-letter"],
381-
# timeout = 43200,
382-
# schedule = "cron(30 06 * * ? *)",
383-
# },
363+
{
364+
name = "inspection-request-email",
365+
commands = ["batch:inspection-request-email"],
366+
timeout = 1800,
367+
schedule = "cron(0 13 * * ? *)",
368+
},
369+
{
370+
name = "interim-end-date-enforcement",
371+
commands = ["batch:interim-end-date-enforcement"],
372+
timeout = 43200,
373+
schedule = "cron(00 13 * * ? *)",
374+
},
375+
{
376+
name = "last-tm-letter",
377+
commands = ["batch:last-tm-letter"],
378+
timeout = 43200,
379+
schedule = "cron(30 13 * * ? *)",
380+
},
384381
{
385382
name = "licence-status-rules",
386383
commands = ["batch:licence-status-rules"],
@@ -395,21 +392,20 @@ module "service" {
395392
name = "process-inbox",
396393
commands = ["batch:process-inbox"],
397394
timeout = 43200,
398-
schedule = "cron(45 01 * * ? *)",
395+
schedule = "cron(45 13 * * ? *)",
399396
},
400397
{
401398
name = "process-ntu",
402399
commands = ["batch:process-ntu"],
403400
timeout = 43200,
404401
schedule = "cron(0 18 ? * 2-6 *)",
405402
},
406-
# Environment is not up at this time
407-
# {
408-
# name = "remove-read-audit",
409-
# commands = ["batch:remove-read-audit"],
410-
# timeout = 43200,
411-
# schedule = "cron(0 22 ? * 1 *)",
412-
# },
403+
{
404+
name = "remove-read-audit",
405+
commands = ["batch:remove-read-audit"],
406+
timeout = 43200,
407+
schedule = "cron(0 13 ? * 1 *)",
408+
},
413409
{
414410
name = "resolve-payments",
415411
commands = ["batch:resolve-payments"],
@@ -424,19 +420,18 @@ module "service" {
424420
name = "cancel-unsubmitted-bilateral",
425421
commands = ["permits:cancel-unsubmitted-bilateral"],
426422
},
427-
# Environment is not up at this time
428-
# {
429-
# name = "close-expired-windows",
430-
# commands = ["permits:close-expired-windows"],
431-
# timeout = 43200,
432-
# schedule = "cron(45 00 * * ? *)",
433-
# },
434-
# {
435-
# name = "mark-expired-permits",
436-
# commands = ["permits:mark-expired-permits"],
437-
# timeout = 43200,
438-
# schedule = "cron(15 06 * * ? *)",
439-
# },
423+
{
424+
name = "close-expired-windows",
425+
commands = ["permits:close-expired-windows"],
426+
timeout = 43200,
427+
schedule = "cron(45 13 * * ? *)",
428+
},
429+
{
430+
name = "mark-expired-permits",
431+
commands = ["permits:mark-expired-permits"],
432+
timeout = 43200,
433+
schedule = "cron(15 13 * * ? *)",
434+
},
440435
{
441436
name = "process-queue-general",
442437
commands = ["queue:process-queue", "--exclude", "que_typ_ch_compare,que_typ_create_gds_vehicle_list,que_typ_create_psv_vehicle_list,que_typ_disc_printing,que_typ_print,que_typ_disc_printing_print,que_typ_create_com_lic,que_typ_remove_deleted_docs,que_typ_permit_generate,que_typ_permit_print,que_typ_run_ecmt_scoring,que_typ_accept_ecmt_scoring,que_typ_irhp_permits_allocate"],

0 commit comments

Comments
 (0)