Skip to content

Commit

Permalink
Add worker main() function docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
douglatornell committed Jul 23, 2024
1 parent acba210 commit a182b82
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 0 deletions.
4 changes: 4 additions & 0 deletions nowcast/workers/archive_tarball.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@


def main():
"""For command-line usage see:
:command:`python -m nowcast.workers.archive_tarball --help`
"""
worker = NowcastWorker(NAME, description=__doc__)
worker.init_cli()
worker.cli.add_argument(
Expand Down
4 changes: 4 additions & 0 deletions nowcast/workers/download_results.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@


def main():
"""For command-line usage see:
:command:`python -m nowcast.workers.download_results --help`
"""
worker = NowcastWorker(NAME, description=__doc__)
worker.init_cli()
worker.cli.add_argument(
Expand Down
4 changes: 4 additions & 0 deletions nowcast/workers/download_wwatch3_results.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@


def main():
"""For command-line usage see:
:command:`python -m nowcast.workers.download_wwatch3_results --help`
"""
worker = NowcastWorker(NAME, description=__doc__)
worker.init_cli()
worker.cli.add_argument(
Expand Down
4 changes: 4 additions & 0 deletions nowcast/workers/make_feeds.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@


def main():
"""For command-line usage see:
:command:`python -m nowcast.workers.make_feeds --help`
"""
worker = NowcastWorker(NAME, description=__doc__)
worker.init_cli()
worker.cli.add_argument(
Expand Down
4 changes: 4 additions & 0 deletions nowcast/workers/rotate_hindcast_logs.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@


def main():
"""For command-line usage see:
:command:`python -m nowcast.workers.rotate_hindcast_logs --help`
"""
worker = NowcastWorker(NAME, description=__doc__)
worker.init_cli()
worker.run(rotate_hindcast_logs, success, failure)
Expand Down

0 comments on commit a182b82

Please sign in to comment.