Is it safe to assign to Task.name?

4 views
Skip to first unread message

Justin Porter

unread,
Apr 25, 2019, 11:17:32 AM4/25/19
to jug-users
I am interested in breaking out different tasks that are the same function for the purposes of `jug execute jugfile.py --target XXX` and on `jug status`, but at different point in the workflow, to different names.

Is it safe to just assign to Task.name after the task in the jugfile?

For example, something like this:

for i in range(10):
   t
=fn(i)
   t.name = 'phase1'

for i in range(10):
   t
=fn(i)
   t.name = 'phase2'

Cheers,
Justin

Luis Pedro Coelho

unread,
Apr 26, 2019, 12:08:51 AM4/26/19
to jug-users
Should be fine for normal usage, but using `--debug` will trigger an error because the hash changes.

Best,
Luis

--
Luis Pedro Coelho | Fudan University | http://luispedro.org
--
You received this message because you are subscribed to the Google Groups "jug-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jug-users+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages