Schedule
Adjust the system's operational schedule for a location
/settings/schedule/[locationId]

This page allows user to make changes to the schedule TAILDET-AI operates based on for a location, by adding, modifying and deleting "Runs". A run consists of the following elements:

  • Day of the week: This includes standard days of week as well as public holidays. See snippet below
  • Start time: The time the system starts operating
  • Duration: The amount of time in hours the run lasts
Manage operational schedule

Once the user has made modification to the schedule, the EventBridge Scheduler schedules associated with the locations will be updated, which runs a fargate container for the duration of the run. The fargate container reads from the IP camera and pushes the stream to Kinesis Video Stream, which persists the stream to be used by the Lambda function to create clips on entry. See Architecture to learn more about the architecture of the system.

Clicking on the Add run will open a modal that allows the user to add a new run. The user can select the start time and duration of the run.

Add run

This schedule editor will detect any invalid schedules and will immediately notify the user and will not allow the user to save the schedule if any. There are two types of invalid schedules:

  • Malformed schedule: When the runs are missing necessary components like start time and duration, or the JSON input itself is malformed when using the API.
  • Overlapping runs: When the runs overlap with each other, meaning that the start time of one run is within the duration of another run. For example:
    • DoW = Monday, Start time = 09:00, Duration = 8 hours
    • DoW = Monday, Start time = 13:00, Duration = 8 hours

    In this case, the second run overlaps with the first run, as it starts at 13:00, which is within the duration of the first run (09:00 to 17:00).

    Similarly, the following example will also be invalid:

    • DoW = Monday, Start time = 20:00, Duration = 8 hours
    • DoW = Tuesday, Start time = 01:00, Duration = 8 hours

    In this case, the second run overlaps with the first run, as it starts at 01:00, which is within the duration of the first run (20:00 to 04:00).