router
¤
Functions:
| Name | Description |
|---|---|
cronjob |
Execute pre-set scheduled jobs |
postprocess |
Send result back to cloud or whatever you wanna do |
cronjob()
¤
Execute pre-set scheduled jobs
the scheduling rules are specified by etc.server.cronjob using
| key | type | note |
|---|---|---|
| year | int, str | 4-digit number |
| month | int, str | 1-12 |
| day | int, str | 1-31 |
| week | int, str | 1-53 |
| day_of_week | int, str | 0-6 or mon, tue, wed, thu, fri, stat, sun |
| hour | int, str | 0-24 |
| minute | int, str | 0-59 |
| second | int, str | 0-59 |
Source code in quark/runtime/router.py
50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 | |
postprocess(result: dict)
¤
Send result back to cloud or whatever you wanna do
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
result
|
dict
|
task result |
required |
result
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | |
Source code in quark/runtime/router.py
109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 | |