Skip to content

Commit

Permalink
Echo exit status upon completion
Browse files Browse the repository at this point in the history
  • Loading branch information
chosak committed Nov 2, 2023
1 parent a58c707 commit bf51eb8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crawler/management/commands/crawl.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,6 @@ def command(start_url, db_filename, max_pages, depth, recreate, resume):
# https://docs.djangoproject.com/en/3.2/topics/async/#async-safety
os.environ["DJANGO_ALLOW_ASYNC_UNSAFE"] = "true"

return app.run_sync()
exit_status = app.run_sync()
click.echo(f"done, exiting with status {exit_status}")
return exit_status

0 comments on commit bf51eb8

Please sign in to comment.