StackOverflowBot icon indicating copy to clipboard operation
StackOverflowBot copied to clipboard

Post not sent to the Slack channel

Open logankilpatrick opened this issue 6 years ago • 5 comments

https://stackoverflow.com/questions/57965526/how-to-skip-errors-in-a-loop-for-julia

This question doesn't appear in the slack. Either the tag was edited, or there was a weird time issue. (edge case related to the time calculation).

logankilpatrick avatar Sep 17 '19 03:09 logankilpatrick

If the question is posted exactly 30 minutes before the github action runs (unlikely), or as you mention if the tag is edited or added after the action runs, the current implementation will not capture it. Maybe what should happen is read the last hour of Slack channel posts by the bot and check what posts are missing from the last hour of Julia StackOverflow questions and post those; and run this script every 30 minutes or so. Thoughts?

kdheepak avatar Sep 17 '19 22:09 kdheepak

Yes, that’s likely the right solution. All I would need todo is build a basic logging system. I can even check questions in the last 32 minutes, see if any of them are in my log, if not, post them.

Best, Logan Kilpatrick

On Sep 17, 2019, at 6:09 PM, Dheepak Krishnamurthy [email protected] wrote:

If the question is posted exactly 30 minutes before the github action runs (unlikely), or as you mention if the tag is edited or added after the action runs, the current implementation will not capture it. Maybe what should happen is read the last hour of Slack channel posts by the bot and check what posts are missing from the last hour of Julia StackOverflow questions and post those; and run this script every 30 minutes or so. Thoughts?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

logankilpatrick avatar Sep 17 '19 22:09 logankilpatrick

The issue ends up being that the environment gets cleaned after an action is done, so I would have to remotely commit the updated log file.

Best, Logan Kilpatrick

On Sep 17, 2019, at 6:24 PM, Logan Kilpatrick [email protected] wrote:

Yes, that’s likely the right solution. All I would need todo is build a basic logging system. I can even check questions in the last 32 minutes, see if any of them are in my log, if not, post them.

Best, Logan Kilpatrick

On Sep 17, 2019, at 6:09 PM, Dheepak Krishnamurthy [email protected] wrote:

If the question is posted exactly 30 minutes before the github action runs (unlikely), or as you mention if the tag is edited or added after the action runs, the current implementation will not capture it. Maybe what should happen is read the last hour of Slack channel posts by the bot and check what posts are missing from the last hour of Julia StackOverflow questions and post those; and run this script every 30 minutes or so. Thoughts?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

logankilpatrick avatar Sep 17 '19 22:09 logankilpatrick

Might consider using a firebase server in order to avoid the overhead of committing and such.

logankilpatrick avatar Sep 18 '19 15:09 logankilpatrick

The opposite can also be true. It’s possible that there’s a post that is sent twice is posted near the top the hour. It’s happend twice.

logankilpatrick avatar Sep 19 '19 10:09 logankilpatrick