smartdispatch icon indicating copy to clipboard operation
smartdispatch copied to clipboard

Add a ~/.smartdispatch config folder

Open mgermain opened this issue 10 years ago • 0 comments

Upon execution, smartdispatch should create that folder if it does not exist and then copy the queue file of the appropriate cluster so the user can modify it at will.

Also, create a smartd_dispatch.conf json file for the configs and defaults:

  • Default argument_templates caracters.
  • Default queue per cluster (think mp2 and ms that share the same file system).
  • Default group (RAPID) // verify if there is a default procedure to change that in the cluster instead
  • Email for job notification
  • ???

Example for the argument_templates: Instead of using [1 2 3] for the list_argument_template someone could configure it to be !1 2 3!

{
 "argument_templates": { "list" : { "open": "[", "close": "]", "seperator": " " },
                         "range" : { "open": "[", "close": "]", "seperator": ":" }}
}

Alternatively this all could be in ~/.smartdispatchrc and look like this:

// Custom Queues
{
}
// Config
{
 "email" : "[email protected]", // Notification of failure will be sent to that email
 "default_rapid": "xyz-123-aa",
 "default_queue": {"helios" : "gpu_4"},
 "argument_templates": { "list" : { "open": "[", "close": "]", "seperator": " " },
                         "range" : { "open": "[", "close": "]", "seperator": ":" }}
}

mgermain avatar Nov 28 '14 20:11 mgermain