How to set status to "FAILED" when some condition?

12 views
Skip to first unread message

bind...@gmail.com

unread,
May 4, 2019, 8:28:10 AM5/4/19
to pyspider-users
Hello,

I want set status to "FAILED" in Active Task when insert data to database is failed. 
Is there any way to achieve it?

Thx.

Roy Binux

unread,
May 4, 2019, 9:29:07 AM5/4/19
to bind...@gmail.com, pyspider-users
Insert data in script and throw an error when fail

--
You received this message because you are subscribed to the Google Groups "pyspider-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyspider-user...@googlegroups.com.
To post to this group, send email to pyspide...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pyspider-users/ad23b24d-d73d-47a2-a9f1-c77b3623c08c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Regards,
Roy Binux

bind...@gmail.com

unread,
May 7, 2019, 2:55:11 AM5/7/19
to pyspider-users
It's work! Thx!


On Saturday, May 4, 2019 at 9:29:07 PM UTC+8, Roy Binux wrote:
Insert data in script and throw an error when fail
On Sat, May 4, 2019 at 5:28 AM <bind...@gmail.com> wrote:
Hello,

I want set status to "FAILED" in Active Task when insert data to database is failed. 
Is there any way to achieve it?

Thx.

--
You received this message because you are subscribed to the Google Groups "pyspider-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyspide...@googlegroups.com.
--
Regards,
Roy Binux
Reply all
Reply to author
Forward
0 new messages