task

Filter to show sub tasks of a filtered list of parent tasks

妖精的绣舞 提交于 2019-12-18 18:50:17
问题 I have a JIRA filter which returns all the fixes in a future release: project = MyProject AND fixVersion = "1.1.1" and issuetype in standardIssueTypes() and status != Closed All of these issues have Sub-Tasks which I want to have in a new filter result. They do not have the fixVersion set. I have tried the parent filter but this only accepts Key or ID. Is there any way I can write a filter to access these without manually using something like parent in (MyProject-1,MyProject-2,MyProject-3

Filter to show sub tasks of a filtered list of parent tasks

↘锁芯ラ 提交于 2019-12-18 18:50:14
问题 I have a JIRA filter which returns all the fixes in a future release: project = MyProject AND fixVersion = "1.1.1" and issuetype in standardIssueTypes() and status != Closed All of these issues have Sub-Tasks which I want to have in a new filter result. They do not have the fixVersion set. I have tried the parent filter but this only accepts Key or ID. Is there any way I can write a filter to access these without manually using something like parent in (MyProject-1,MyProject-2,MyProject-3

Task Dependency in OpenMP 4

∥☆過路亽.° 提交于 2019-12-18 13:37:52
问题 The following code works based on the OpenMP 4.0 specification: The out and inout dependence-types. The generated task will be a dependent task of all previously generated sibling tasks that reference at least one of the list items in an in, out, or inout dependence-type list. This means that task3 becomes dependent of task2. Right? but it does not make sense! Why should an input-output dependency task be a dependent of an input dependency task? What do I need to do in order to make them

Task.Factory.FromAsync with CancellationTokenSource

狂风中的少年 提交于 2019-12-18 12:59:10
问题 I have the following line of code used to read asynchronously from a NetworkStream: int bytesRead = await Task<int>.Factory.FromAsync(this.stream.BeginRead, this.stream.EndRead, buffer, 0, buffer.Length, null); I'd like to make it support cancellation. I see that I can cancel tasks using a CancellationTokenSource, however I don't see any way I can pass it to TaskFactory.FromAsync(). Is it possible to make a FromAsync()-constructed task support cancellation? Edit: I want to cancel a task that

Ant scp task not working, even with jsch on ant/lib

試著忘記壹切 提交于 2019-12-18 12:52:21
问题 I need to copy a war file via scp. I have added the jsch-0.1.42.jar to $ANT_HOME/lib but I'm still getting this error: Cause: the class org.apache.tools.ant.taskdefs.optional.ssh.Scp was not found. This looks like one of Ant's optional components. This is the result of running ant -diagnostics just in case: http://gist.github.com/320859 回答1: This looks like your problem, from the top of the diagnostics: optional tasks : not available Your $ANT_HOME/lib directory is missing ant-jsch.jar, which

How can I get the equivalent of Task<T> in .net 3.5?

非 Y 不嫁゛ 提交于 2019-12-18 11:57:19
问题 I have some code that is using Task<T> which defers returning a result from a serial read operation for a short time, like this: void ReturnResponseAfterAShortDelay() { if (delayedResponseCancellationTokenSource != null) delayedResponseCancellationTokenSource.Cancel(); // Cancel any pending operations and start a new one. delayedResponseCancellationTokenSource = new CancellationTokenSource(); log.InfoFormat("Deferring response for {0} ms", Settings.Default.TimeoutMs); Task.Delay(Properties

Celery: clean way of revoking the entire chain from within a task

◇◆丶佛笑我妖孽 提交于 2019-12-18 11:56:39
问题 My question is probably pretty basic but still I can't get a solution in the official doc. I have defined a Celery chain inside my Django application, performing a set of tasks dependent from eanch other: chain( tasks.apply_fetching_decision.s(x, y), tasks.retrieve_public_info.s(z, x, y), tasks.public_adapter.s())() Obviously the second and the third tasks need the output of the parent, that's why I used a chain. Now the question: I need to programmatically revoke the 2nd and the 3rd tasks if

Relay Command can execute and a Task

岁酱吖の 提交于 2019-12-18 11:34:08
问题 i want to start a task when a relay command is called, however i want to disable the button as long as that task is running take this example private ICommand update; public ICommand Update { get { if (update == null) { update = new RelayCommand( param => Task.Factory.StartNew(()=> StartUpdate()), param => true); //true means the button will always be enabled } return update; } } what is the best way to check if that task is running? here is my solution but not sure if its the best way class

Async Program still freezing up the UI

随声附和 提交于 2019-12-18 09:39:36
问题 Hello I'm writing a WPF program that gets has thumbnails inside a ThumbnailViewer. I want to generate the Thumbnails first, then asynchronously generate the images for each thumbnail. I can't include everything but I think this is whats relevant Method to generate the thumbnails. public async void GenerateThumbnails() { // In short there is 120 thumbnails I will load. string path = @"C:\....\...\...png"; int pageCount = 120; SetThumbnails(path, pageCount); await Task.Run(() => GetImages(path,

Task constructor vs Task.Run with async Action - different behavior

最后都变了- 提交于 2019-12-18 06:53:51
问题 Could anyone please explain this, perhaps I'm missing something obvious. These 2 cases seem to be identical in behavior, and yet they are not. Case 1 : Start a Task with an async Action, that does some work for some time: var t = Task.Run(async () => { await Task.Delay(2000); }); A second task waits for the first one: var waitingTask = Task.Run(() => { t.Wait(); }); Wait for the second task: waitingTask.Wait(); Case 2 : Build a Task using the Task constructor, passing the same async Action :