Skip to content

Document querying single Job by ID #240

Open

Description

@johtso

I'm assuming it's as simple as instantiating a Job object with the relevant job id, but the documentation doesn't mention that approach, only using Job references that are returned when they are first created. Also what happens if the job doesn't exist?

Activity

  1. samuelcolvin commented on Apr 24, 2021

    @samuelcolvin
    Member

    yes it's very simple, you also need to pass a redis instance:

    https://github.com/samuelcolvin/arq/blob/cca11e46b7c8ebbd5e17eae1ca3b51eb8739feb7/arq/jobs.py#L64-L70

    PR welcome to add this to the docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsNeed an edit to the documentation.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions