Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
unitybase
ubjs
Commits
7d83e619
Commit
7d83e619
authored
Oct 14, 2021
by
Pavel Mashliakovskiy
🤹🏻
Browse files
minor ubq_messages doc changes
parent
814b20e3
Changes
1
Hide whitespace changes
Inline
Side-by-side
packages/ubq/ubq_messages.js
View file @
7d83e619
...
...
@@ -101,12 +101,13 @@ function getFnFromNS (path) {
*
* {
* schedulerName: cfg.name, command: cfg.command, module: cfg.module,
* singleton: cfg.singleton !== false, logSuccessful: cfg.logSuccessful
* singleton: cfg.singleton !== false, logSuccessful: cfg.logSuccessful,
* runAsID: optional user ID for runAs
* }
*
* `command` must be a function name (may including namespace), for example `UB.UBQ.sendQueueMail` or `ubs_message_edit.notifyAllRecipients`
* in case `command` not passed `module` must be a module what export default a function, for example module: '@unitybase/myModule/schedTask'
* and
in schedTask.js `module exports = function() {...}`
* and in schedTask.js
:
`module exports = function() {...}`
*
* In case `singleton` parameter is missing or === false scheduler can run a multiple instances of the same task,
* otherwise - if previous task with the same name not finished yet current task will not be executed
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment