task

C# - Task.WaitAll () is not waiting for all task to finish

雨燕双飞 提交于 2019-12-12 04:05:10
问题 I am using C# code to send an Xml to an api end point and capture the response The way I do it is as follows I have folder A with 100 xmls, folder B with 100 Xmls and folder C with 100 xmls I loop through each of the folders and in each loop iteration I create a task. Lets call this as folder task The folder task loop through all the xml in each folder and captures the response. This is accomplished in sendrequestandcaptureresponse() method The issue I am facing is the loop end before all the

Task /progress bar JavaFX application

删除回忆录丶 提交于 2019-12-12 03:46:24
问题 In my javaFx app I'm trying to attach my progress bar to a task which is supposed to execute some methods from another class, I cannot seem to get the task to run through these methods when i click the button for this task. This is my search page controller for two words inputted by user FXML Controller class public class WordComparePageController implements Initializable { @FXML private TextField wordOneText; @FXML private TextField wordTwoText; @FXML private Button pairSearchButton; @FXML

GAE task, are the urls secure by design?

蹲街弑〆低调 提交于 2019-12-12 03:26:22
问题 I'm trying to wrap my head around Google App Engine and more specifically at the Tasks. My question is about security, if I define a queue like : - url: /queues/long-task script: urlhandlers.QueueLongTask.app login: admin Will I be sure that the /queues/long-task can only be accessed by admin AND task system ? I was not able to find a reference about this in the Google documentation. Thank you in advance 回答1: You are correct, login: admin takes care of it. Here you can find more info on the

Need suggestions for efficient design for my use case

老子叫甜甜 提交于 2019-12-12 03:25:45
问题 I am trying to integrate a third party library in my WPF application. This library is used to collect credit card history for a person by his/her social security number. It basically provides a method that returns void. Once that method is complete, you can collect credit card history. ThirdPartyLibrary Instance = new Instance(SSN); Instance.Run(); // This method returns a void and it blocks until data retrieval completes if ( Instance.Success ) CreditHistory History = Instance.CreditHistory;

Random tasks from Task.Factory.StartNew never finishes

…衆ロ難τιáo~ 提交于 2019-12-12 03:22:17
问题 I am using Async await with Task.Factory method. public async Task<JobDto> ProcessJob(JobDto jobTask) { try { var T = Task.Factory.StartNew(() => { JobWorker jobWorker = new JobWorker(); jobWorker.Execute(jobTask); }); await T; } This method I am calling inside a loop like this for(int i=0; i < jobList.Count(); i++) { tasks[i] = ProcessJob(jobList[i]); } What I notice is that new tasks opens up inside Process explorer and they also start working (based on log file). however out of 10

Update task item programatically in Sharepoint with CSOM

て烟熏妆下的殇ゞ 提交于 2019-12-12 02:49:49
问题 I want to update a task item programatically in CSOM. Item is updating but workflow is not triggering. I need just to open the item in sharepoint and save it. Then workflow is triggering. List requestTasksList = MyWeb.Lists.GetByTitle("TestRequest Tasks"); List<TestRequestModel> testRequestList = new List<TestRequestModel>(); ListItemCollection ColListItems = requestTasksList.GetItems(Spqur); ctx.Load(ColListItems); ctx.ExecuteQuery(); foreach (ListItem task in ColListItems) { task["Status"]

Gradle: how do I inject a task dependency into a plugin-defined task?

早过忘川 提交于 2019-12-12 02:49:39
问题 If a plugin defines a series of tasks, is it possible to inject a dependency into these, such that the dependency is called before the plugin-defined task is executed? The native-artifacts plugin defines buildNar (and buildNarxxx, where xxx is the platform config) tasks. It also defines extractNarDepsxxx (where xxx is the platform config for the Nar to be built). extractNarDeps is not called before builder, so the build fails as required dependencies are not downloaded prior to the attempted

Multiple processes in method executed asynchronously from calling thread

眉间皱痕 提交于 2019-12-12 02:35:14
问题 Suppose I have multiple (say, two) processes that I want to run sequentially but asynchronously, how do I go about doing this? See snippet below: public virtual Task<bool> ExecuteAsync() { var tcs = new TaskCompletionSource<bool>(); string exe1 = Spec.GetExecutablePath1(); string exe2 = Spec.GetExecutablePath2(); string args1 = string.Format("--input1={0} --input2={1}", Input1, Input2); string args2 = string.Format("--input1={0} --input2={1}", Input1, Input2); try { var process1 = new Process

update outlook task from acess with vba

妖精的绣舞 提交于 2019-12-12 02:27:38
问题 I am trying to update outlook tasks from Access using VBA. See the code below. This is a procedure within a class. I first look for the task matching two criteria (this is working) and then I would like to update the task fields. Would someone know why this is not working and if there is a way to do it? The code is running without any error message showing up, but the task does not get updated. I would prefer not to delete the task and create a similar one (I would lose the creation date).

How to call tasks from a separate module in Verilog?

早过忘川 提交于 2019-12-12 02:15:48
问题 I'm new to Verilog and would really appreciate it if someone could help me with this. I have a task written in a separate file - "task.v" : module task_create(); task assign_inp; reg a,b,c,d; //details endtask endmodule I have a module that is calling this task: module tb(); `include "task.v" assign_inp(a,b,c,d); endmodule When I execute this, I get this error: Module definition task_create cannot nest into module tb When I remove the module and endmodule in task.v, I get this error: Task