@haku-sci/utils 1.5.0 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -32,7 +32,7 @@ if the service uses a database PostgreSQL, and this database doesn't exist in th
|
|
|
32
32
|
## RabbitMQ
|
|
33
33
|
|
|
34
34
|
Using RabbitMQService, lets implement dispatch of messages with an option to wait that all messages have been processed. A watchdog of 10 seconds raise an error Gateway timeout
|
|
35
|
-
If the option is activated, a queue ack_queue_\<name of the
|
|
35
|
+
If the option is activated, a queue ack_queue_\<name of the microservice\> is created
|
|
36
36
|
|
|
37
37
|
The decorator HakuSciSubscriber allows to listen for a specific keyword.
|
|
38
38
|
Each microservice which register with this decorator will have automatically a queue created, with its name.
|
|
@@ -40,7 +40,7 @@ The exchanger is amq.topic
|
|
|
40
40
|
|
|
41
41
|
## launch.json
|
|
42
42
|
|
|
43
|
-
The launch.json file allows to run all services (the
|
|
43
|
+
The launch.json file allows to run all services (the microservice libs must be in the same directory as "services", which contains all services)
|
|
44
44
|
|
|
45
45
|
## utils
|
|
46
46
|
|
|
@@ -49,6 +49,10 @@ The launch.json file allows to run all services (the project libs must be in the
|
|
|
49
49
|
lets call dynamically the function of an object, with parameters
|
|
50
50
|
(Format: object as class, function name as string, parameters as dictionary)
|
|
51
51
|
|
|
52
|
+
### getSortedParameters
|
|
53
|
+
|
|
54
|
+
for a function, get available parameters as dictionary, and return a list of parameters in correct order, to be run for this function (...args)
|
|
55
|
+
|
|
52
56
|
### withWatchdog
|
|
53
57
|
|
|
54
58
|
Add a watchdog to a promise
|