scheduler.yaml 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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: 'cd ~;ls -lah;'
  37. validate:
  38. required: true
  39. .args:
  40. type: text
  41. label: PLUGIN_ADMIN.EXTRA_ARGUMENTS
  42. .at:
  43. type: cron
  44. label: PLUGIN_ADMIN.SCHEDULER_RUNAT
  45. help: PLUGIN_ADMIN.SCHEDULER_RUNAT_HELP
  46. placeholder: '* * * * *'
  47. validate:
  48. required: true
  49. .output:
  50. type: text
  51. label: PLUGIN_ADMIN.SCHEDULER_OUTPUT
  52. help: PLUGIN_ADMIN.SCHEDULER_OUTPUT_HELP
  53. placeholder: 'logs/ls-cron.out'
  54. .output_mode:
  55. type: select
  56. label: PLUGIN_ADMIN.SCHEDULER_OUTPUT_TYPE
  57. help: PLUGIN_ADMIN.SCHEDULER_OUTPUT_TYPE_HELP
  58. default: append
  59. options:
  60. append: Append
  61. overwrite: Overwrite
  62. .email:
  63. type: text
  64. label: PLUGIN_ADMIN.SCHEDULER_EMAIL
  65. help: PLUGIN_ADMIN.SCHEDULER_EMAIL_HELP
  66. placeholder: 'notifications@yoursite.com'