Changes between Version 14 and Version 15 of docs_udpmsg


Ignore:
Timestamp:
Oct 1, 2018, 3:36:01 AM (6 weeks ago)
Author:
ehb
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • docs_udpmsg

    v14 v15  
    3737
    3838== progress ==
    39  * adding a _progress value between 0 and 1 will provide a progress % value in the job manager
     39 * create a type progress output in your module file, with id, for example, myprogress
    4040 * it is probably a good idea to fire off a udp message with a "_progress":0 at the start of the module execution
    4141 * example:
     
    4545  "_uuid"    : "1234-5678-ABCD-EFGH",
    4646  "output1"  : "my output 1 partially done",
    47   "_progress" : 0.25,
     47  "myprogress" : 0.25,
    4848...
    4949}
     
    177177
    178178        UDP_IP = json_variables['_udphost']
    179         UDP_PORT = json_variables['_udpport']
     179        UDP_PORT = int( json_variables['_udpport'] )
    180180        sock = socket.socket(socket.AF_INET, # Internet
    181181                socket.SOCK_DGRAM) # UDP