Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
engine
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AURA
engine
Commits
feead00c
Commit
feead00c
authored
1 year ago
by
David Trattnig
Browse files
Options
Downloads
Patches
Plain Diff
style: docs
parent
70ea0dbe
No related branches found
No related tags found
1 merge request
!20
Preparations for ORM-less scheduling
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/aura_engine/scheduling/utils.py
+7
-5
7 additions, 5 deletions
src/aura_engine/scheduling/utils.py
with
7 additions
and
5 deletions
src/aura_engine/scheduling/utils.py
+
7
−
5
View file @
feead00c
...
...
@@ -63,7 +63,8 @@ class TimeslotFilter:
@staticmethod
def
filter_24h
(
timeslots
):
"""
Filter timeslot of the last 24 hours.
"""
Filter timeslot of the last 24 hours.
Remove entries 24h in the future and 12 hours in the past.
Note: This might influence resuming (in case of a crash)
...
...
@@ -86,7 +87,8 @@ class TimeslotFilter:
@staticmethod
def
filter_past
(
timeslots
):
"""
Filter old timeslots.
"""
Filter old timeslots.
Remove all timeslot dictionaries from the past, except the one which is
currently playing.
...
...
@@ -111,7 +113,7 @@ class TimeslotFilter:
class
M3UPlaylistProcessor
:
"""
Render
s
a M3U Playlist as a engine compatible playlist dictionary.
Render a M3U Playlist as a engine compatible playlist dictionary.
"""
config
=
None
...
...
@@ -176,7 +178,7 @@ class M3UPlaylistProcessor:
class
TimeslotRenderer
:
"""
Display
s
current and next timeslots in ASCII for maintenance and debugging.
Display current and next timeslots in ASCII for maintenance and debugging.
"""
logger
=
None
...
...
@@ -340,7 +342,7 @@ class TimeslotRenderer:
def
preprocess_entries
(
self
,
entries
,
cut_oos
):
"""
Analyse and mark
s
entries which are going to be cut or excluded.
Analyse and mark entries which are going to be cut or excluded.
Args:
entries ([PlaylistEntry]): The playlist entries to be scheduled for playout
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment