scheduler.yaml 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. title: PLUGIN_ADMIN.SCHEDULER
  2. form:
  3. validation: loose
  4. fields:
  5. status_title:
  6. type: section
  7. title: PLUGIN_ADMIN.SCHEDULER_STATUS
  8. underline: true
  9. status:
  10. type: cronstatus
  11. validate:
  12. type: commalist
  13. jobs_title:
  14. type: section
  15. title: PLUGIN_ADMIN.SCHEDULER_JOBS
  16. underline: true
  17. custom_jobs:
  18. type: list
  19. style: vertical
  20. label:
  21. classes: cron-job-list compact
  22. key: id
  23. fields:
  24. .id:
  25. type: key
  26. label: ID
  27. placeholder: 'process-name'
  28. validate:
  29. required: true
  30. pattern: '[a-zа-я0-9_\-]+'
  31. max: 20
  32. message: 'ID must be lowercase with dashes/underscores only and less than 20 characters'
  33. .command:
  34. type: text
  35. label: PLUGIN_ADMIN.COMMAND
  36. placeholder: 'ls'
  37. validate:
  38. required: true
  39. .args:
  40. type: text
  41. label: PLUGIN_ADMIN.EXTRA_ARGUMENTS
  42. placeholder: '-lah'
  43. .at:
  44. type: cron
  45. label: PLUGIN_ADMIN.SCHEDULER_RUNAT
  46. help: PLUGIN_ADMIN.SCHEDULER_RUNAT_HELP
  47. placeholder: '* * * * *'
  48. validate:
  49. required: true
  50. .output:
  51. type: text
  52. label: PLUGIN_ADMIN.SCHEDULER_OUTPUT
  53. help: PLUGIN_ADMIN.SCHEDULER_OUTPUT_HELP
  54. placeholder: 'logs/ls-cron.out'
  55. .output_mode:
  56. type: select
  57. label: PLUGIN_ADMIN.SCHEDULER_OUTPUT_TYPE
  58. help: PLUGIN_ADMIN.SCHEDULER_OUTPUT_TYPE_HELP
  59. default: append
  60. options:
  61. append: Append
  62. overwrite: Overwrite
  63. .email:
  64. type: text
  65. label: PLUGIN_ADMIN.SCHEDULER_EMAIL
  66. help: PLUGIN_ADMIN.SCHEDULER_EMAIL_HELP
  67. placeholder: 'notifications@yoursite.com'