Changeset 194f49c in tailbone
- Timestamp:
- 11/20/2022 07:37:29 PM (2 months ago)
- Branches:
- master
- Children:
- a63d7e9
- Parents:
- 922b550
- Location:
- tailbone
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
tailbone/templates/luigi/configure.mako
r922b550 r194f49c 37 37 label="Description"> 38 38 {{ props.row.description }} 39 </b-table-column> 40 <b-table-column field="class_name" 41 label="Class Name"> 42 {{ props.row.class_name }} 39 43 </b-table-column> 40 44 <b-table-column field="script" … … 80 84 </b-input> 81 85 </b-field> 82 <b-field label="Script" 83 :type="overnightTaskScript ? null : 'is-danger'"> 86 <b-field label="Module"> 87 <b-input v-model.trim="overnightTaskModule"> 88 </b-input> 89 </b-field> 90 <b-field label="Class Name"> 91 <b-input v-model.trim="overnightTaskClass"> 92 </b-input> 93 </b-field> 94 <b-field label="Script"> 84 95 <b-input v-model.trim="overnightTaskScript"> 85 96 </b-input> … … 97 108 icon-left="save" 98 109 @click="overnightTaskSave()" 99 :disabled="!overnightTaskKey || !overnightTaskDescription || !overnightTaskScript">110 :disabled="!overnightTaskKey || !overnightTaskDescription"> 100 111 Save 101 112 </b-button> … … 271 282 ThisPageData.overnightTaskKey = null 272 283 ThisPageData.overnightTaskDescription = null 284 ThisPageData.overnightTaskModule = null 285 ThisPageData.overnightTaskClass = null 273 286 ThisPageData.overnightTaskScript = null 274 287 ThisPageData.overnightTaskNotes = null … … 278 291 this.overnightTaskKey = null 279 292 this.overnightTaskDescription = null 293 this.overnightTaskModule = null 294 this.overnightTaskClass = null 280 295 this.overnightTaskScript = null 281 296 this.overnightTaskNotes = null … … 290 305 this.overnightTaskKey = task.key 291 306 this.overnightTaskDescription = task.description 307 this.overnightTaskModule = task.module 308 this.overnightTaskClass = task.class_name 292 309 this.overnightTaskScript = task.script 293 310 this.overnightTaskNotes = task.notes … … 298 315 this.overnightTask.key = this.overnightTaskKey 299 316 this.overnightTask.description = this.overnightTaskDescription 317 this.overnightTask.module = this.overnightTaskModule 318 this.overnightTask.class_name = this.overnightTaskClass 300 319 this.overnightTask.script = this.overnightTaskScript 301 320 this.overnightTask.notes = this.overnightTaskNotes -
tailbone/views/luigi.py
r922b550 r194f49c 87 87 88 88 try: 89 self.luigi_handler.launch_overnight_task(task, app.yesterday()) 89 self.luigi_handler.launch_overnight_task(task, app.yesterday(), 90 email_if_empty=True, 91 wait=False) 90 92 except Exception as error: 91 93 log.warning("failed to launch overnight task: %s", task, … … 172 174 {'name': 'rattail.luigi.overnight.task.{}.description'.format(key), 173 175 'value': task['description']}, 176 {'name': 'rattail.luigi.overnight.task.{}.module'.format(key), 177 'value': task['module']}, 178 {'name': 'rattail.luigi.overnight.task.{}.class_name'.format(key), 179 'value': task['class_name']}, 174 180 {'name': 'rattail.luigi.overnight.task.{}.script'.format(key), 175 181 'value': task['script']}, … … 230 236 model.Setting.name.like('rattail.luigi.overnight.task.%.notes'), 231 237 model.Setting.name.like('rattail.luigi.overnight.%.notes'), 238 model.Setting.name.like('rattail.luigi.overnight.task.%.module'), 239 model.Setting.name.like('rattail.luigi.overnight.task.%.class_name'), 232 240 model.Setting.name.like('rattail.luigi.overnight.task.%.script'), 233 241 model.Setting.name.like('rattail.luigi.overnight.%.script')))\
Note: See TracChangeset
for help on using the changeset viewer.