I want to use the go-micro v4 framework to write a scheduled task.
But I can't find a suitable example in the official document. Does anyone provide me with an example for my reference?
Related
I am getting up to speed on GCP Workflows. What is the best practice for handling backfilling data with Workflows, and are there any built in methods like airflow? If not, then it looks like the best option is to pass in a start_date and keep looping through a subworkflow while incrementing the date.
I believe you can find how to backfile on the official Google documentation on backfiling, though this does refer specifically to BigQuery... It's what makes the most sense within the context that you're mentioning, seeing as Workflows is more of a... job scheduler? I guess?
If this is not what you are referring to, then could you please clarify what it is that you are attempting to do with GCP Workflows?
I'm asking because by the definition of workflows found in the overview for Google Workflows, they don't really have associated/built-in methods, they just call the methods that you program them to.
I'm Using Mule 4.2.2 Runtime. We use the errorHandling generated by APIKIT and we customized it according to customer requirement's, which is quite standard across all the upcoming api's.
Thinking to convert this as a connector so that it will appear as component/connector in palette to reuse across all the api's instead copy paste everytime.
Like RestConnect for API specification which will automatically convert in to connector as soon as published in Exchange ( https://help.mulesoft.com/s/article/How-to-generate-a-connector-for-a-REST-API-for-Mule-3-x-and-4-x).
Do we have any option like above publishing mule common flow which will convert to component/connector?
If not, which one is the best way suits in my scenario
1) using SDK
https://dzone.com/articles/mulesoft-custom-connector-using-mule-sdk-for-mule (or)
2) creating jar as mentioned in this page
[https://www.linkedin.com/pulse/flow-reusability-mule-4-nagaraju-kshathriya][2]
Please suggest which one is best and easy way in this case? Thanks in advance.
Using the Mule SDK (1) is useful to create a connector or module in Java. Your questions wasn't fully clear about what do want to encapsulate in a connector. I understand that you want is to share parts of a flow as a connector in the palette, which is different. The XML SDK seems to be more inline with that. You will need to make some changes to encapsulate the flow elements, as described in the documentation. That's actually very similar to how REST connect works.
The method described in (2) is for importing XML flows from a JAR file, but the method described by that link is actually incorrect for Mule 4. The right way to implement sharing flows through a library is the one described at https://help.mulesoft.com/s/article/How-to-add-a-call-to-an-external-flow-in-Mule-4. Note that this method doesn't create a connector that can be used from Anypoint Studio palette.
From personal experience - use common flow, put it to repository and include it as dependency to pom file. Even better solution - include is as flow to the Domain app and use it alone with your shared https connector.
I wrote a lot of Java based custom components. I liked them a lot and was proud of them. But transition from Mule3 to Mule4 killed most of them. Even in Mule4 Mulesoft makes changes periodically which make components incompatible with runtime.
I'm new to Marklogic and mlcp. I'm working on marklogin 9.0-8. I wnat to use mlcp to load content, but since some parameters may need to be dynamically built based on content, does anyone know if it is possible to call mlcp from java application?
Thanks a lot,
Helen
MarkLogic provides two Java-based ways to load content: MLCP and DMSDK. MLCP is intended to be used as a command-line tool (and I believe that's the only supported use).
The Data Movement SDK, on the other hand, is specifically intended to offer very similar functionality in the form of a JAR, making it easy to access from a Java application. I encourage you to look into using that instead.
tutorial
JavaDoc
Asynchronous Multi-Document Operations
12-minute video intro to DMSDK
common tasks made easier through ml-gradle
Is it possible to have graphical representation to submit and restart the jobs and is it possible to display job progress and job status information to the user.
At present there is no graphical front end for JSR-352 support in Liberty. There is a REST interface that you can use instead of the JobOperator API that could be used underneath a graphical interface. Documentation on that is here: http://www.ibm.com/support/knowledgecenter/SS7K4U_8.5.5/com.ibm.websphere.wlp.nd.multiplatform.doc/ae/rwlp_batch_rest_api.html?cp=SSAW57_8.5.5 and see also the whitepaper here: https://www-03.ibm.com/support/techdocs/atsmastr.nsf/WebIndex/WP102632.
Furthermore, you can also subscribe to batch events published at significant points in the life of a job to monitor progress. That is described here: http://www.ibm.com/support/knowledgecenter/SS7K4U_8.5.5/com.ibm.websphere.wlp.nd.multiplatform.doc/ae/twlp_batch_monitoring.html?cp=SSAW57_8.5.5 and see also the whitepaper here: https://www-03.ibm.com/support/techdocs/atsmastr.nsf/WebIndex/WP102603.
Finally, there is an open requirement (developerworks/rfe) asking for Admin Center support to help manage batch jobs. You may want to vote for that requirement. The requirement number is 87445.
I have a JIRA project and some of my tasks contains subtasks with lasbels "needDesign".
Is it possible to find all parent tasks which contains subtasks with that label?
(I use ondemand jira version)
Jira JQL doesn't not provide this out of the box, however there are many add-ons that extend JQL to allow this.
I would normally suggest you install the Script Runner add-on (see https://marketplace.atlassian.com/plugins/com.onresolve.jira.groovy.groovyrunner) as it contains many useful built-in functions to perform searches in JQL like the one you are asking about.
The particular function for this add-o you want to use is:
parentsOf(Subquery) - Returns the parents of issues specified by the subquery.
issueFunction in parentsOf("labels in (needDesign)")
Unfortunately you stated you are using ondemand and this add-on is not available for ondemand currently.
Your options as far as I see is to:
code a function using the REST API (requires programming skills search for subtasks then get the parent id)
periodically review the ondemand add-ons in the Jira marketplace for updated add-ons that extend JQL (I didn't seen any that do what you need)
contact the Script Runner add-on owner and/or Jira and request this functionality.
This type of subquery is so fundamental for anyone using subtasks I am surprised that there isn't a bundled solution for this, perhaps it is a potential performance issue for the ondemand offering.
I know that is not what you want to hear but hope that answers your question.