OwnHeroNet / discordify

Wrapper to execute UNIX shell commands and notify a channel in slack/discord about the results.
MIT License
3 stars 0 forks source link

Add timed events and callbacks. #3

Open SaschaJust opened 5 years ago

SaschaJust commented 5 years ago

Discordify should support timer and corresponding callbacks to report the state of long running tasks. This would be useful in progress monitoring.

There are two things that need to be added for supporting a command that checks the progress.

Example

# Reports the progress every 5 minutes
discordify --timer 300 --progress 'du -sch results' my_tool

@nicbet thoughts?

nicbet commented 5 years ago

I think it would be helpful for discordify to periodically emit the past n lines of stdout / stderr buffers of long running tasks.

SaschaJust commented 5 years ago

Buffer size currently is 5, but we can make this configurable while implementing this feature. Tracking in #4