zackster
07/20/2022, 4:43 PMristo
07/20/2022, 7:26 PMzackster
07/21/2022, 7:24 AMAdam Cameron
<cfschedule>
is 1min according to the docs (https://docs.lucee.org/reference/tags/schedule.html#attribute-interval). Is this a limitation of the underlying task running mechanism, so that's as good as it gets, or might there be a way to tell it to run more frequently than 1min if one was to write directly to the underlying task runner's config?Adam Cameron
zackster
07/21/2022, 12:43 PMMark Drew (he/him)
07/21/2022, 2:04 PMAdam Cameron
timeout
param on <cfstoredproc>
(https://docs.lucee.org/reference/tags/storedproc.html#attribute-timeout). At the timeout, does this send some sort of "terminate" request to the DB server to kill the proc, or does Lucee simply stop waiting for the DB to come back (and in the background, the proc is still churning away on the DB server).
I might try to come up with some sort of test to find out, but just wondered if someone knows?
It'd be great if this sort of thing was in the docs, rather than just "timeout for the stored procedure.", which is just stating the obvious, and not even really worth saying, I think.Mark Drew (he/him)
07/21/2022, 2:28 PMPeter Hoopes
07/22/2022, 1:12 AM<cfschedule>
option in Lucee (5.3.9.141). When I search in the search bar in the admin, an item comes up on the results page pointing to a module at /lucee/admin/server.cfm?action=services.schedule
, but that doesn’t exist and just takes me back to the admin page. So… is there a task scheduling engine in Lucee currently, and if so is there any way to see/modify in the admin? The docs show that <cfschdule>
is a valid tag, but now I’m wondering… any pointers?zackster
07/22/2022, 10:31 AMzackster
07/22/2022, 3:30 PMAdam Cameron
getTime
on a CFML datatime object?
Cos I'm old and cranky, I kinda go... "hrm". But... maybe "[shrug] yeah, realistically: that's cool" would also be an option.Mark Drew (he/him)
07/25/2022, 1:24 PMAdam Cameron
file
attribute is "Unimplemented", yet... seems to work to me.
I am worried that "Unimplemented" used in conjunction with Lucee's idiosyncratic understanding of "deprecated" might mean that all bets are off when it comes to those attributes persisting in the future.rodyon
07/26/2022, 8:06 PMchapmandu
07/27/2022, 7:32 AMcubortea
07/27/2022, 10:38 AMcubortea
07/27/2022, 10:39 AM<cfset wp = createObject('java','org.docx4j.openpackaging.packages.WordprocessingMLPackage')>
<cfset theFile = CreateObject("java", "java.io.File")>
<cfset theFile.init("/app/web/task/local/docx/empty.docx")>
<cfset tmp = wp.load(theFile)>
cubortea
07/27/2022, 10:39 AMcubortea
07/27/2022, 10:41 AMbhartsfield
07/27/2022, 4:42 PMdump( [nullValue(), 6, nullValue(), 10].map( ( value ) => value ?: -1 ) );
zackster
07/28/2022, 7:43 AM[].set(1,10,"hi") // ["hi","hi","hi","hi","hi","hi","hi","hi","hi","hi"]
https://blog.mattclemente.com/2022/07/27/til-cfml-arrayset/zackster
07/28/2022, 10:10 AMMatt Dyer
07/28/2022, 2:46 PMbirdy1980
07/28/2022, 2:49 PMnet.sf.ehcache.CacheException: Another CacheManager with same name 'StudiemeterDev' already exists in the same VM. Please provide unique names for each CacheManager in the config or do one of following:
We have to restart to get rid of this error...
Is there something I can do to prevent this error?Adam Cameron
// Foo.cfc
component {
static {
Foo::someVar = 0
}
}
// Foo.cfc
component {
static {
static.someVar = 0
}
}
Or, that said, any idiomatic preference for one or the other.Adam Cameron
My::someVar = "new value"
, I do not see the change in the other request.
I am seeing another variant where I access My::someVar
for reading (eg: someOtherVar = My::someVar
, Lucee says "nup, someVar
doesn't exist. Yet I run another request that has writeOutput(My::someVar)
, and that outputs its value.
If these were objects I'd check their hashcodes expecting them to be different objects cos I've done something daft and accidentally created two objects. But there's no equivalent daftery I can perform with static properties. And also I have no idea how I might get some sort of hashcode or ID from a CFC name anyhow. Is there a way of identifying which My
my code is using, to check if somehow I have two of them?
NB: there are not different mappings in play here, all references are via the file-system path from the Lucee web root.zackster
07/29/2022, 10:22 AM