Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLI: Scheduler commands #148

Closed
wants to merge 3 commits into from
Closed

Conversation

ohinckel
Copy link

Added two new scheduler commands to list scheduled tasks (but not logics, which are already listed by other commands):

  • sl - list all tasks with a scheduled ordered by name
  • st - list all tasks with a scheduled ordered by next execution time
  • si - show information for given scheduler task

Example output for sl:

> sl
3 scheduler tasks:
Connections (scheduled for 2015-02-17 13:12:49+0100)
series (scheduled for 2015-02-17 13:12:49+0100)
sh.gc (scheduled for 2015-02-18 02:04:00+0100)
> 

Example output for st:

> st
3 scheduler tasks by time:
2015-02-17 13:33:29+0100 Connections
2015-02-17 13:33:29+0100 series
2015-02-18 02:04:00+0100 sh.gc
> 

Example output for si:

> si sh.gc
Task sh.gc {
  obj = <bound method SmartHome._maintenance of <__main__.SmartHome object at 0xe213b0>>
  prio = 8
  value = None
  next = 2015-03-23 02:04:00+01:00
  cron = {'4 2 * *': None}
  active = True
  cycle = None
}
> 

@cstrassburg
Copy link

@ohinckel
Copy link
Author

@cstrassburg I can't find anything from this PR in the new project. Did you merge this already? If you want I can create a new PR in the new project.

@ohinckel
Copy link
Author

Patch is part of PR smarthomeNG/smarthome#103 in new project and will close this issue now. Thanks for your great application!

@ohinckel ohinckel closed this Aug 14, 2016
@ohinckel ohinckel deleted the dev-cli-scheduler branch September 4, 2016 19:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants