Skip to content
Discussion options

You must be logged in to vote

Hello and thanks for your interest. You are correct, in case your job is scheduled in a different context than the context where you are reading the result from, you would have to use a workaround. Here is some kind of MVP example:

import asyncio

from repid import (
    Connection,
    InMemoryBucketBroker,
    InMemoryMessageBroker,
    Job,
    Repid,
    Router,
    Worker,
)


async def main() -> None:
    conn = Repid(
        connection=Connection(
            message_broker=InMemoryMessageBroker(),
            args_bucket_broker=InMemoryBucketBroker(),
            results_bucket_broker=InMemoryBucketBroker(use_result_bucket=True),
        )
    )

    # first FastAPI endpoint, tha…

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@superjcvd
Comment options

Answer selected by aleksul
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants