TACTIC Open Source
Scheduled Trigger process - Printable Version

+- TACTIC Open Source (http://forum.southpawtech.com)
+-- Forum: TACTIC Open Source (http://forum.southpawtech.com/forumdisplay.php?fid=3)
+--- Forum: TACTIC Discussion (http://forum.southpawtech.com/forumdisplay.php?fid=4)
+--- Thread: Scheduled Trigger process (/showthread.php?tid=162)



Scheduled Trigger process - Celton McGrath - 07-31-2020

Code:
                if not process_code:
                    print("WARNING: Skipping process trigger [%s] ... not implemented" % trigger_sobj.get_code() )
                    continue

On 4.8.b03, there is a requirement for a scheduled trigger to have a non-empty "process" attribute. 

~ lines 606 of src/pyasm/web/monitor.py

What is the purpose of this? I am able to run my trigger with a random value in this column.


RE: Scheduled Trigger process - remkonoteboom - 07-31-2020

I am not really sure. There isn't an obvious reason. The warning messages indicated that something would go wrong if a process wasn't defined in a process trigger. However, I don't know why it doesn't just default to "publish" process.


RE: Scheduled Trigger process - Celton McGrath - 07-31-2020

Can I make the default "publish"? I also made one other fix.


RE: Scheduled Trigger process - remkonoteboom - 07-31-2020

Yes, go ahead. Submitting a pull request is always welcome.