-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathrequestSubmitter.py
43 lines (32 loc) · 1.17 KB
/
requestSubmitter.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
39
40
41
42
43
"""
Client to submit new render request to server
"""
import logging
from util import client
logging.basicConfig(level=logging.INFO)
LOGGER = logging.getLogger(__name__)
def send(d):
"""
Send/Submit a new render request
:param d: dict. a render request serialized as dictionary
"""
rrequest = client.add_request(d)
if rrequest:
LOGGER.info('request %s sent to server', rrequest.uid)
if __name__ == '__main__':
test_job_a = {
'name': 'street_seq01',
'owner': 'TEST_SUBMITTER_01',
'umap_path': '/Game/Cinematics/Street/Level_Cin_Street.Level_Cin_Street',
'useq_path': '/Game/Cinematics/Street/Shots/Shot01/LS_Shot_Street_Shot01.LS_Shot_Street_Shot01',
'uconfig_path': '/Game/Cinematics/Preset/Test.Test'
}
test_job_b = {
'name': 'street_seq02',
'owner': 'TEST_SUBMITTER_01',
'umap_path': '/Game/Cinematics/Street/Level_Cin_Street.Level_Cin_Street',
'useq_path': '/Game/Cinematics/Street/Shots/Shot02/LS_Shot_Street_Shot02.LS_Shot_Street_Shot02',
'uconfig_path': '/Game/Cinematics/Preset/Test.Test'
}
for job in [test_job_a, test_job_b]:
send(job)