Add way to store data returned from task
See original GitHub issueFor 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:
- Created 2 years ago
- Comments:9 (7 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
We might do something more straightforward, but until then: https://procrastinate.readthedocs.io/en/stable/howto/middleware.html
Thanks!