The deploy.jobs module

User 912 | 1/29/2015, 6:03:12 PM

With the risk of sounding too stupid, but I usually delete jobs by specifying their index and this time I forgot to add it, so I kind of deleted the deploy.jobs module with "del gl.deploy.jobs".. What can I do to fix this?

Comments

User 398 | 1/29/2015, 9:12:56 PM

Hi,

Firstly, you might want to use the delete method in the future, which allows you to specify by jobs by name (or by a glob pattern):

<pre class="CodeBlock"><code> gl.deploy.jobs.delete(pattern="Model-Parameter-Search*") </code></pre>

This command: <pre class="CodeBlock"><code>del gl.deploy.jobs</code></pre> amounts to deleting the global reference to jobs in your current session. One way to get it back is just to quit your Python session and start it up again. Have you tried that?


User 912 | 2/1/2015, 12:06:57 PM

Oh, okay, that makes sense.. Yes, fixed it.

Cheers!