scheduler.yaml 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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: text
  45. wrapper_classes: cron-selector
  46. label: PLUGIN_ADMIN.SCHEDULER_RUNAT
  47. help: PLUGIN_ADMIN.SCHEDULER_RUNAT_HELP
  48. placeholder: '* * * * *'
  49. validate:
  50. required: true
  51. .output:
  52. type: text
  53. label: PLUGIN_ADMIN.SCHEDULER_OUTPUT
  54. help: PLUGIN_ADMIN.SCHEDULER_OUTPUT_HELP
  55. placeholder: 'logs/ls-cron.out'
  56. .output_mode:
  57. type: select
  58. label: PLUGIN_ADMIN.SCHEDULER_OUTPUT_TYPE
  59. help: PLUGIN_ADMIN.SCHEDULER_OUTPUT_TYPE_HELP
  60. default: append
  61. options:
  62. append: Append
  63. overwrite: Overwrite
  64. .email:
  65. type: text
  66. label: PLUGIN_ADMIN.SCHEDULER_EMAIL
  67. help: PLUGIN_ADMIN.SCHEDULER_EMAIL_HELP
  68. placeholder: 'notifications@yoursite.com'