-
Notifications
You must be signed in to change notification settings - Fork 4
/
jobs.py
38 lines (25 loc) · 857 Bytes
/
jobs.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Job configuration for validate.py
# Each key in the dictionary assigned to JOBS should be an abbreviated name for the job. The value should be a
# dictionary with two key-value pairs: the "full_name" key should have as its value a human-readable string identifying
# the job; the "queries" key should have as its value a list of query names from dbqueries.py.
# Standard modules
from typing import Literal, TypedDict
# Local modules
from dbqueries import QueryName
# Types
JobName = Literal['UDP']
class JobData(TypedDict):
full_name: str
queries: list[QueryName]
class JobDict(TypedDict):
UDP: JobData
# Jobs configuration
JOBS: JobDict = {
'UDP': {
"full_name": "UDP Daily Status Report",
"queries": [
"udp_context_store_view_counts",
"udp_learner_activity_updated"
]
}
}