Skip to content

how to avoid tgsheducler start background task when gearbox tgshell? #146

@shaverlee

Description

@shaverlee

hi.
In my turbogears project, I use tgsheduler to start some background task, it run nice. Everything is good, except these background task will also start such as when I run "gearbox tgshell ", which is not my intention. Someone suggest I can check sys.argv variable, however I may deploy this project with some wsgi server in the future, which make this issue more complicate.
Is there an ultimate solution?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions