Skip to content

Add a check for jobs running locally or in the cloud #90

@ejulio

Description

@ejulio

Currently, we may have settings for spiders running locally and other settings for spiders running in Scrapy Cloud (Dash).
Usually, I add a check like if 'SHUB_JOBKEY' not in os.environ:.
However it may not be the best one and , if for some reason this env is deprecated, I need to update my checks.
If would be nice to have this kind of check, not sure if in this library or somewhere else.

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