question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add way to store data returned from task

See original GitHub issue

For example when a job created from a task such as:

@app.task(pass_context=True)
async def hello_world(ctx):
    return "Hello World"

finishes successfully, then the “Hello World” should be able to be looked up using the job id.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
ewjoachimcommented, Jul 16, 2021

We might do something more straightforward, but until then: https://procrastinate.readthedocs.io/en/stable/howto/middleware.html

0reactions
canadaduanecommented, Sep 28, 2021

Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to: Return a Value from a Task | Microsoft Learn
This example shows how to use the System.Threading.Tasks.Task<TResult> class to return a value from the Result property. To use this example ...
Read more >
How to Return a Value from a Task in C# with Examples
Using this Task<T> class we can return data or values from a task. In Task<T>, T represents the data type that you want...
Read more >
"Storing" a task for later completion - Stack Overflow
Basically what I'm trying to design is a dictionary of tasks, with correlation IDs (GUIDs) as the key. This is for co-ordinating incoming ......
Read more >
Getting a return value from a Task with C# | Exercises in .NET ...
We specify that we want to count to 300. .NET 4.5. The recommended way in .NET 4.5 is to use Task.FromResult, Task.Run or...
Read more >
How to get a Result from a task - Hacking with Swift
To start with we're going to make this task throw errors if the download fails, or if the data can't be converted to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found