modmore / Scheduler

A general, abstract method of scheduling various tasks within MODX Revolution.
https://www.modmore.com/extras/scheduler/documentation/
MIT License
11 stars 14 forks source link

Add task_key field to sTaskRun #26

Closed isaacniebeling closed 3 years ago

isaacniebeling commented 3 years ago

Add task_key field to sTaskRun, to allow setting/searching/indexing of small pieces of data. Among other things, this allows outside extras to retrieve and act on task runs more easily.

This PR adds the fields to the schema and db and adds an index to the db for the task_key (might also want to add indexes for status and/or task at some point, but that's not really this PR's focus). It also adds the fields to the Future and Historic grids (hidden) and the Create, Update and Reschedule windows. It also adds the task_key to the where for the taskrun getlist processor.

I've tested this locally and didn't run into any issues.