8B.TinyTask Properties
8B.TinyTask Properties
8B.1.wings-enabled-79.properties
wings.enabled.tiny.task.autorun
Boolean=true, whether to auto register TinyTask.Auto.
wings.enabled.tiny.task.mvc-conf
Boolean=true, whether to enable TaskConfController.
wings.enabled.tiny.task.mvc-exec
Boolean=true, whether to enable TaskExecController.
wings.enabled.tiny.task.mvc-list
Boolean=true, whether to enable TaskListController.
8B.2.wings-tinytask-exec-79.properties
wings.tiny.task.exec.dryrun
Boolean=false, whether to dry run, log only without really exec the task.
wings.tiny.task.exec.notice-prefix
String=tiny-task, prefix of notice subject.
8B.3.wings-flywave-fit-79.properties
wings.faceless.flywave.fit.tiny-task
Database dependency, after import this lib, the script will be auto executed.
path=classpath*:/wings-flywave/master/06-task/*.sqlrevi=2020_1026_01Llost=EXEC
8B.4.wings-tinytask-beat-79.properties
TinyTask's own tasks, clearing logs and healthy heartbeat.
wings.tiny.task.define[TinyTaskCleanResult]
timing-cron=7 11 13 * * *, clean the result at system timezone 13:11:07
wings.tiny.task.define[TinyTaskCheckHealth]
Check health status every 347 seconds of idle time.
timing-idle=347notice-when=tail,done
8B.5.wings-tinytask-define-79.properties
Default config of task wings.tiny.task.define[default]
wings.tiny.task.define[default].enabled
Boolean=true, whether to register and execute, not use Default config.
wings.tiny.task.define[default].autorun
Boolean=true, whether to auto register and start, not use Default config.
wings.tiny.task.define[default].version
Integer=0, config version number, higher version overrides lower one, when equals, properties override database, not use Default config.
wings.tiny.task.define[default].tasker-bean
String, Beans annotated by TinyTasker, formatted as Class#method, automatically recognized by default, not use Default config.
wings.tiny.task.define[default].tasker-para
String=null, Parameters of the task, object array in json format, default null or no parameters, not use Default config.
wings.tiny.task.define[default].tasker-name
String, Task name, used for notice and log, better readability, default is [shortClassName#method], not use Default config.
wings.tiny.task.define[default].task-fast
Boolean=true, Whether it is a light task, fast execution, completed in seconds, not use Default config.
wings.tiny.task.define[default].tasker-apps
String=${spring.application.name}, The app it belongs to, comma separated, use Default config if null or empty.
wings.tiny.task.define[default].tasker-runs
String, RunMode(product|test|develop|local), !test,-test means NOT(veto) test, Comma separated, ignore case, default all, use Default config if null or empty.
wings.tiny.task.define[default].notice-bean
String=pro.fessional.wings.slardar.notice.DingTalkNotice
Notice bean, SmallNotice type, fullpath of Class, no notice by default. use Default config if null or empty.
wings.tiny.task.define[default].notice-when
String=fail, Timing of notice, exec|fail|done|feed, comma separated ignoring case, default fail. use Default config if null or empty.
- timing is roughly expressed: exec;try{run...;done}catch{fail}
- exec - init task; done - success; fail - failed; feed - non-empty return.
wings.tiny.task.define[default].notice-conf
String, The config name of the notice bean, automatic by default. use Default config if empty.
wings.tiny.task.define[default].timing-zone
String, timezone of scheduling , default system timezone, use Default config if null or empty.
wings.tiny.task.define[default].timing-type
String=cron, scheduling expression type, affects how timingCron is parsed, defaults to spring cron format, use Default config if null or empty.
wings.tiny.task.define[default].timing-cron
String, Scheduling expression content, highest priority, affected by timingType, default spring cron format (second minute hour day month week), not use Default config.
wings.tiny.task.define[default].timing-idle
Integer=0, Fixed idle interval (seconds), lower priority than timingCron, equal to fixedDelay, end to start, 0 means disable, not use Default config.
wings.tiny.task.define[default].timing-rate
Integer=0, Fixed frequency interval (seconds), lower priority than timingIdle, equal to fixedRate, start to start, 0 means disable, not use Default config.
wings.tiny.task.define[default].timing-tune
Integer=0, execute the task before(negative) or after tune seconds, not use Default config. like Scheduled.initialDelay, but
- rate - first time on this jvm
- idle - first time on this jvm
- cron - each time
wings.tiny.task.define[default].timing-miss
Long=0, Within how many seconds of a misfire, execution is required, not use Default config.
<0- execute as0if now + miss * 1000 >= 00- execute if N0 < now <= N0 + (N1-N0) * 25% < N1>0- execute if N1 < now <= N1 + miss * 1000
wings.tiny.task.define[default].timing-beat
Long=0, the interval seconds of heartbeat and health-check, not use Default config. it is considered as an exception if the last_exec is more than 2 heartbeats away from now.
<0- calculate as0if now + beat * 1000 >= 00- auto calculate,- when cron, calc next_exec from last_exec,
- others, max rate and idle
>0- fixed positive seconds
wings.tiny.task.define[default].during-from
String, schedule start datetime at timingZone, in yyyy-MM-dd HH:mm:ss format, 0 means disable, not use Default config.
wings.tiny.task.define[default].during-stop
String, schedule stop datetime at timingZone, in yyyy-MM-dd HH:mm:ss format, 0 means disable, not use Default config.
wings.tiny.task.define[default].during-exec
Integer=0, stop schedule after how many total executions, not use Default config.
wings.tiny.task.define[default].during-fail
Integer=0, stop schedule after how many consecutive failures, not use Default config.
wings.tiny.task.define[default].during-done
Integer=0, stop schedule after how many successful executions, not use Default config.
wings.tiny.task.define[default].during-boot
Integer=0, recount each time the app is started, and stop schedule after how many successful executions, disable by default, not use Default config.
wings.tiny.task.define[default].result-keep
Integer=60, how many days to save the execution results, default 60 days, 0 means not save, use Default configuration if null.
8B.6.wings-tinytask-urlmap-79.properties
URL of builtin features.
wings.tiny.task.urlmap.task-running
String=/admin/task/task-running.json, list of running tasks.
wings.tiny.task.urlmap.task-defined
String=/admin/task/task-defined.json, list of defined tasks.
wings.tiny.task.urlmap.task-result
String=/admin/task/task-result.json, list of task results.
wings.tiny.task.urlmap.task-cancel
String=/admin/task/task-cancel.json, cancel a task.
wings.tiny.task.urlmap.task-launch
String==/admin/task/task-launch.json, start a task.
wings.tiny.task.urlmap.task-force
String=/admin/task/task-force.json, force to start a task.
wings.tiny.task.urlmap.task-enable
String=/admin/task/task-enable.json, enable or disable a task.
wings.tiny.task.urlmap.task-prop-save
String=/admin/task/task-prop-save.json, update the task config.
wings.tiny.task.urlmap.task-prop-load
String=/admin/task/task-prop-load.json, load the task config.
wings.tiny.task.urlmap.task-prop-conf
String=/admin/task/task-prop-conf.json, show the prop of task conf.
wings.tiny.task.urlmap.task-prop-diff
String=/admin/task/task-prop-diff.json, show the diff of task conf.
