-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathcli.py
More file actions
59 lines (50 loc) · 1.37 KB
/
cli.py
File metadata and controls
59 lines (50 loc) · 1.37 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
import logging.config
import click
from feast_spark.job_service import start_job_service
logging.config.dictConfig(
{
"version": 1,
"disable_existing_loggers": True,
"formatters": {
"standard": {"format": "%(asctime)s [%(levelname)s] %(name)s: %(message)s"},
},
"handlers": {
"debug": {
"level": "INFO",
"formatter": "standard",
"class": "logging.StreamHandler",
"stream": "ext://sys.stdout",
},
"standard": {
"level": "WARNING",
"formatter": "standard",
"class": "logging.StreamHandler",
"stream": "ext://sys.stderr",
},
},
"loggers": {
"": {"handlers": ["standard"], "level": "WARNING", "propagate": False},
"feast_spark": {
"handlers": ["debug", "standard"],
"level": "INFO",
"propagate": False,
},
"feast": {
"handlers": ["debug", "standard"],
"level": "INFO",
"propagate": False,
},
},
}
)
@click.group()
def cli():
pass
@cli.command(name="server")
def server():
"""
Start Feast Job Service
"""
start_job_service()
if __name__ == "__main__":
cli()