I'm running Slack bot as a scheduled task along this post.
Today I ran the same script from console because my bot was down.
Though I thought the next scheduled task will exit soon because the socket is locked by console task, in fact it ran as another bot so that they duplicated every reply message on my Slack.
It seems that scheduled tasks and console tasks can acquire the same socket at the same time.
It looks quite strange to me. Does anyone know why this problem occurs?